22 #ifndef BACKENDS_GRAPHICS3D_OPENGL_SURFACE_RENDERER_H 23 #define BACKENDS_GRAPHICS3D_OPENGL_SURFACE_RENDERER_H 25 #include "math/rect2d.h" 27 #include "graphics/opengl/system_headers.h" 55 virtual void render(
const TextureGL *tex,
const Math::Rect2d &dest) = 0;
79 #if defined(USE_OPENGL_GAME) 83 virtual ~FixedSurfaceRenderer();
87 void render(
const TextureGL *tex,
const Math::Rect2d &dest)
override;
93 #if defined(USE_OPENGL_SHADERS) 97 ShaderSurfaceRenderer();
98 virtual ~ShaderSurfaceRenderer();
102 void render(
const TextureGL *tex,
const Math::Rect2d &dest)
override;
107 GLuint _boxVerticesVBO;
108 GLboolean _prevStateDepthTest;
109 GLboolean _prevStateDepthWriteMask;
110 GLboolean _prevStateBlend;
111 GLboolean _prevStateScissorTest;
112 GLint _prevStateBlendSrcRGB;
113 GLint _prevStateBlendDstRGB;
114 GLint _prevStateBlendSrcAlpha;
115 GLint _prevStateBlendDstAlpha;
116 GLint _prevStateViewport[4];
125 #endif // GRAPHICS_OPENGL_SURFACE_RENDERER_H void enableAlphaBlending(bool enable)
virtual void prepareState()=0
virtual void restorePreviousState()=0
Definition: renderbuffer.h:27
Definition: surfacerenderer.h:37
void setFlipY(bool flipY)
virtual void render(const TextureGL *tex, const Math::Rect2d &dest)=0