Oxygine  1
2g game engine
VideoDriverGL.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "../VideoDriver.h"
4 #include "VertexDeclarationGL.h"
5 #include "oxgl.h"
6 
7 namespace oxygine
8 {
9  class VertexDeclarationGL;
10  DECLARE_SMART(NativeTextureGLES, spNativeTextureGLES);
11 
14  {
15  public:
16  VideoDriverGL();
17 
18 
19  void getViewport(Rect& r) const;
20  bool getScissorRect(Rect&) const;
21  spNativeTexture getRenderTarget() const;
22  const VertexDeclarationGL* getVertexDeclaration(bvertex_format) const;
23 
24  void setScissorRect(const Rect*);
25  void setRenderTarget(spNativeTexture rt);
26 
27  void setBlendFunc(BLEND_TYPE src, BLEND_TYPE dest);
28  void setState(STATE, unsigned int value);
29 
30 
31  protected:
32  unsigned int getPT(IVideoDriver::PRIMITIVE_TYPE pt);
33  unsigned int getBT(IVideoDriver::BLEND_TYPE pt);
34 
35  void _begin(const Rect& viewport, const Color* clearColor);
36  spNativeTextureGLES _rt;
37 
38  mutable VertexDeclarations<VertexDeclarationGL> _vdeclarations;
39  };
40 }
–oxgl-end–!
Definition: Actor.h:14
Definition: VertexDeclaration.h:18
Definition: VideoDriver.h:12
Definition: Color.h:8
Definition: VideoDriverGL.h:13
Definition: VertexDeclarationGL.h:8