Public Member Functions

sp::video::OpenGLES2RenderSystem Class Reference

OpenGL|ES 2 render system. This renderer supports OpenGL|ES 2.0. More...

#include <spOpenGLES2RenderSystem.hpp>

Inheritance diagram for sp::video::OpenGLES2RenderSystem:
sp::video::GLProgrammableFunctionPipeline sp::video::GLBasePipeline sp::video::RenderSystem

List of all members.

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 ()

Detailed Description

OpenGL|ES 2 render system. This renderer supports OpenGL|ES 2.0.


Constructor & Destructor Documentation

sp::video::OpenGLES2RenderSystem::OpenGLES2RenderSystem (  ) 
sp::video::OpenGLES2RenderSystem::~OpenGLES2RenderSystem (  ) 

Member Function Documentation

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.

Parameters:
[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).
Note:
Since version 3.2 the engine itself changes the internal render mode. Thus when drawing a 2D primitive (such as a 2D image) and the render mode will be changed all your previously changed render states will be overwritten. Therefore you have to provide the next render mode, e.g. when you are drawing in 2D and you want to change a special render state do it this way:
        // 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);
See also:
setRenderMode
ERenderStates

Implements sp::video::RenderSystem.

void sp::video::OpenGLES2RenderSystem::setupConfiguration (  )  [virtual]
void sp::video::OpenGLES2RenderSystem::setupMaterialStates ( const MaterialStates Material  ) 
void sp::video::OpenGLES2RenderSystem::updateModelviewMatrix (  )  [virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines