OpenGL|ES 2 render system. This renderer supports OpenGL|ES 2.0. More...
#include <spOpenGLES2RenderSystem.hpp>
Public Member Functions | |
OpenGLES2RenderSystem () | |
~OpenGLES2RenderSystem () | |
io::stringc | getVersion () const |
Returns the renderer API version (e.g. "OpenGL 3.2" or "Direct3D9.0c"). | |
s32 | getMultitexCount () const |
Returns the count of maximal texture layers for the fixed-function-pipeline. | |
s32 | getMaxLightCount () const |
Returns the count of maximal light sources for the fixed-function-pipeline. | |
bool | queryVideoSupport (const EVideoFeatureQueries Query) const |
Returns true if the specified feature is supported by the renderer. | |
void | setupConfiguration () |
void | setRenderState (const video::ERenderStates Type, s32 State) |
s32 | getRenderState (const video::ERenderStates Type) const |
Returns the current render state. | |
void | disableTriangleListStates () |
void | disable3DRenderStates () |
void | setupMaterialStates (const MaterialStates *Material) |
void | drawMeshBuffer (const MeshBuffer *MeshBuffer) |
Renders the given hardware mesh buffer. | |
void | updateModelviewMatrix () |
OpenGL|ES 2 render system. This renderer supports OpenGL|ES 2.0.
sp::video::OpenGLES2RenderSystem::OpenGLES2RenderSystem | ( | ) |
sp::video::OpenGLES2RenderSystem::~OpenGLES2RenderSystem | ( | ) |
void sp::video::OpenGLES2RenderSystem::disable3DRenderStates | ( | ) |
void sp::video::OpenGLES2RenderSystem::disableTriangleListStates | ( | ) |
void sp::video::OpenGLES2RenderSystem::drawMeshBuffer | ( | const MeshBuffer * | MeshBuffer | ) | [virtual] |
Renders the given hardware mesh buffer.
Implements sp::video::RenderSystem.
s32 sp::video::OpenGLES2RenderSystem::getMaxLightCount | ( | ) | const [virtual] |
Returns the count of maximal light sources for the fixed-function-pipeline.
Implements sp::video::RenderSystem.
s32 sp::video::OpenGLES2RenderSystem::getMultitexCount | ( | ) | const [virtual] |
Returns the count of maximal texture layers for the fixed-function-pipeline.
Implements sp::video::RenderSystem.
s32 sp::video::OpenGLES2RenderSystem::getRenderState | ( | const video::ERenderStates | Type | ) | const [virtual] |
Returns the current render state.
Implements sp::video::RenderSystem.
io::stringc sp::video::OpenGLES2RenderSystem::getVersion | ( | ) | const [virtual] |
Returns the renderer API version (e.g. "OpenGL 3.2" or "Direct3D9.0c").
Reimplemented from sp::video::GLBasePipeline.
bool sp::video::OpenGLES2RenderSystem::queryVideoSupport | ( | const EVideoFeatureQueries | Query | ) | const [virtual] |
Returns true if the specified feature is supported by the renderer.
Implements sp::video::RenderSystem.
void sp::video::OpenGLES2RenderSystem::setRenderState | ( | const video::ERenderStates | Type, | |
s32 | State | |||
) | [virtual] |
Sets the render state manual. Can be used do enabled or disable effects directly.
[in] | Type | Specifies the render state which is to be changed (lighting, blending, fog effect etc.). |
[in] | State | Specifies the new state (commonly TRUE/ FALSE or rather 1/ 0). |
// Provide the next render mode spRenderer->setRenderMode(video::RENDERMODE_DRAWING_2D); // Store the previous render state const s32 PrevRenderState = spRenderer->getRenderState(video::RENDER_BLEND); // Set an individual render state spRenderer->setRenderState(video::RENDERSTATE_BLEND, false); // Draw the primitive spRenderer->draw2DImage(Img, 0); // Reset the render state spRenderer->setRenderState(video::RENDER_BLEND, PrevRenderState);
Implements sp::video::RenderSystem.
void sp::video::OpenGLES2RenderSystem::setupConfiguration | ( | ) | [virtual] |
Implements sp::video::RenderSystem.
void sp::video::OpenGLES2RenderSystem::setupMaterialStates | ( | const MaterialStates * | Material | ) |
void sp::video::OpenGLES2RenderSystem::updateModelviewMatrix | ( | ) | [virtual] |
Implements sp::video::RenderSystem.