|
| STDRenderer (IVideoDriver *driver=0) |
|
const Matrix & | getViewProjection () const |
|
IVideoDriver * | getDriver () |
|
unsigned int | getShaderFlags () const |
|
void | setDriver (IVideoDriver *) |
|
void | setViewProjTransform (const Matrix &viewProj) |
|
void | setVertexDeclaration (const VertexDeclaration *decl) |
|
void | setUberShaderProgram (UberShaderProgram *pr) |
|
void | setBlendMode (blend_mode blend) |
|
void | setTexture (const spNativeTexture &base, const spNativeTexture &alpha, bool basePremultiplied=true) |
|
void | setTexture (const spNativeTexture &base, bool basePremultiplied=true) |
|
void | setTransform (const Transform &tr) |
|
void | beginElementRendering (bool basePremultiplied) |
|
void | beginSDFont (float contrast, float offset, const Color &outlineColor, float outlineOffset) |
|
void | endSDFont () |
|
void | drawElement (const spNativeTexture &texture, unsigned int color, const RectF &src, const RectF &dest) override |
|
void | draw (const Color &, const RectF &srcRect, const RectF &destRect) |
|
void | drawBatch () |
|
void | begin (STDRenderer *prev=0) |
|
void | begin (spNativeTexture nt, const Rect *viewport=0) |
|
void | end () |
|
void | initCoordinateSystem (int width, int height, bool flipU=false) |
|
void | resetSettings () |
|
void | cleanup () |
|
virtual void | addVertices (const void *data, unsigned int size) |
|
|
static STDRenderer * | instance |
|
static spNativeTexture | white |
|
static spNativeTexture | invisible |
|
static UberShaderProgram | uberShader |
|
static std::vector< unsigned char > | uberShaderBody |
|
static std::vector< unsigned short > | indices16 |
|
static size_t | maxVertices |
|
|
void | setShader (ShaderProgram *prog) |
|
void | _drawBatch () |
|
void | _addVertices (const void *data, unsigned int size) |
|
void | _checkDrawBatch () |
|
virtual void | preDrawBatch () |
|
virtual void | _cleanup () |
|
virtual void | _begin () |
|
virtual void | _resetSettings () |
|
◆ begin()
void oxygine::STDRenderer::begin |
( |
STDRenderer * |
prev = 0 | ) |
|
Begins rendering into RenderTexture or into primary framebuffer if rt is null
◆ cleanup()
void oxygine::STDRenderer::cleanup |
( |
| ) |
|
Cleans existing accumulated batch.
◆ drawBatch()
void oxygine::STDRenderer::drawBatch |
( |
| ) |
|
Draws existing batch immediately.
◆ end()
void oxygine::STDRenderer::end |
( |
| ) |
|
Completes started rendering and restores previous Frame Buffer.
◆ initCoordinateSystem()
void oxygine::STDRenderer::initCoordinateSystem |
( |
int |
width, |
|
|
int |
height, |
|
|
bool |
flipU = false |
|
) |
| |
initializes View + Projection matrices where TopLeft is (0,0) and RightBottom is (width, height). use flipU = true for render to texture
◆ initialize()
static void oxygine::STDRenderer::initialize |
( |
| ) |
|
|
static |
Initializes internal classes. Called automatically from oxygine::init();
◆ isReady()
static bool oxygine::STDRenderer::isReady |
( |
| ) |
|
|
static |
is Renderer was restored and ready to be used
◆ release()
static void oxygine::STDRenderer::release |
( |
| ) |
|
|
static |
◆ reset()
static void oxygine::STDRenderer::reset |
( |
| ) |
|
|
static |
◆ restore()
static void oxygine::STDRenderer::restore |
( |
| ) |
|
|
static |
restore after lost context
◆ setBlendMode()
void oxygine::STDRenderer::setBlendMode |
( |
blend_mode |
blend | ) |
|
Sets blend mode. Default value is blend_premultiplied_alpha
◆ setDefaultSettings()
static void oxygine::STDRenderer::setDefaultSettings |
( |
| ) |
|
|
static |
Sets default rendering OpenGL options for 2D
◆ setTexture()
void oxygine::STDRenderer::setTexture |
( |
const spNativeTexture & |
base, |
|
|
const spNativeTexture & |
alpha, |
|
|
bool |
basePremultiplied = true |
|
) |
| |
Sets texture. If texture is null White texture would be used.
◆ setTransform()
void oxygine::STDRenderer::setTransform |
( |
const Transform & |
tr | ) |
|
|
inline |
Sets World transformation.
◆ white
spNativeTexture oxygine::STDRenderer::white |
|
static |
The documentation for this class was generated from the following file: