#include <surfacerenderer.h>
|
bool | _flipY |
|
bool | _alphaBlending |
|
A renderer to draw textures as two dimensional surfaces to the screen.
◆ prepareState()
virtual void OpenGL::SurfaceRenderer::prepareState |
( |
| ) |
|
|
pure virtual |
Push the current OpenGL state, and set up the adequate state for calling the render method.
◆ render()
virtual void OpenGL::SurfaceRenderer::render |
( |
const TextureGL * |
tex, |
|
|
const Math::Rect2d & |
dest |
|
) |
| |
|
pure virtual |
Draw a 2D surface from the specified texture.
The destination rectangle must be specified in the following coordinates system: x: left [0.0, 1.0] right y: top [0.0, 1.0] bottom
◆ restorePreviousState()
virtual void OpenGL::SurfaceRenderer::restorePreviousState |
( |
| ) |
|
|
pure virtual |
Pop the OpenGL state to restore it as it was before calling the prepareState method.
◆ setFlipY()
void OpenGL::SurfaceRenderer::setFlipY |
( |
bool |
flipY | ) |
|
Invert the surface along the Y coordinate
Causes the image to be drawn upside down
◆ enableAlphaBlending()
void OpenGL::SurfaceRenderer::enableAlphaBlending |
( |
bool |
enable | ) |
|
Set the alpha blending with already drawn content
The documentation for this class was generated from the following file: