OpenGL|ES 1 render system. This renderer supports OpenGL|ES 1.1. More...
#include <spOpenGLES1RenderSystem.hpp>
Public Member Functions | |
OpenGLES1RenderSystem () | |
~OpenGLES1RenderSystem () | |
io::stringc | getVersion () const |
Returns the renderer API version (e.g. "OpenGL 3.2" or "Direct3D9.0c"). | |
bool | queryVideoSupport (const EVideoFeatureQueries Query) const |
Returns true if the specified feature is supported by the renderer. | |
void | setupConfiguration () |
void | setupMaterialStates (const MaterialStates *Material) |
void | drawMeshBuffer (const MeshBuffer *MeshBuffer) |
Renders the given hardware mesh buffer. | |
void | draw2DImage (Texture *Tex, const dim::point2di &Position, const color &Color=color(255)) |
void | draw2DImage (Texture *Tex, const dim::rect2di &Position, const dim::rect2df &Clipping=dim::rect2df(0.0f, 0.0f, 1.0f, 1.0f), const color &Color=color(255)) |
void | draw2DImage (Texture *Tex, const dim::point2di &Position, f32 Rotation, f32 Radius, const color &Color=color(255)) |
void | draw2DImage (Texture *Tex, const dim::point2di &lefttopPosition, const dim::point2di &righttopPosition, const dim::point2di &rightbottomPosition, const dim::point2di &leftbottomPosition, const dim::point2df &lefttopClipping=dim::point2df(0.0f, 0.0f), const dim::point2df &righttopClipping=dim::point2df(1.0f, 0.0f), const dim::point2df &rightbottomClipping=dim::point2df(1.0f, 1.0f), const dim::point2df &leftbottomClipping=dim::point2df(0.0f, 1.0f), const color &lefttopColor=color(255), const color &righttopColor=color(255), const color &rightbottomColor=color(255), const color &leftbottomColor=color(255)) |
void | draw2DLine (const dim::point2di &PositionA, const dim::point2di &PositionB, const color &Color=255) |
Draws a 2D line at the specified position (PositionA to PositionB). | |
void | draw2DLine (const dim::point2di &PositionA, const dim::point2di &PositionB, const color &ColorA, const color &ColorB) |
Draws a 2D line with a color change-over (ColorA to ColorB). | |
void | draw2DRectangle (const dim::rect2di &Rect, const color &Color=255, bool isSolid=true) |
void | draw2DRectangle (const dim::rect2di &Rect, const color &lefttopColor, const color &righttopColor, const color &rightbottomColor, const color &leftbottomColor, bool isSolid=true) |
Draws a 2D rectangle or quad with color change-overs. | |
void | draw2DPolygon (const ERenderPrimitives Type, const scene::SPrimitiveVertex2D *VerticesList, u32 Count) |
void | draw3DPoint (const dim::vector3df &Position, const color &Color=255) |
void | draw3DLine (const dim::vector3df &PositionA, const dim::vector3df &PositionB, const color &Color=255) |
void | draw3DLine (const dim::vector3df &PositionA, const dim::vector3df &PositionB, const color &ColorA, const color &ColorB) |
void | draw3DTriangle (Texture *hTexture, const dim::triangle3df &Triangle, const color &Color=255) |
OpenGL|ES 1 render system. This renderer supports OpenGL|ES 1.1.
sp::video::OpenGLES1RenderSystem::OpenGLES1RenderSystem | ( | ) |
sp::video::OpenGLES1RenderSystem::~OpenGLES1RenderSystem | ( | ) |
void sp::video::OpenGLES1RenderSystem::draw2DImage | ( | Texture * | Tex, | |
const dim::point2di & | Position, | |||
const color & | Color = color(255) | |||
) |
void sp::video::OpenGLES1RenderSystem::draw2DImage | ( | Texture * | Tex, | |
const dim::point2di & | Position, | |||
f32 | Rotation, | |||
f32 | Radius, | |||
const color & | Color = color(255) | |||
) |
void sp::video::OpenGLES1RenderSystem::draw2DImage | ( | Texture * | Tex, | |
const dim::point2di & | lefttopPosition, | |||
const dim::point2di & | righttopPosition, | |||
const dim::point2di & | rightbottomPosition, | |||
const dim::point2di & | leftbottomPosition, | |||
const dim::point2df & | lefttopClipping = dim::point2df(0.0f, 0.0f) , |
|||
const dim::point2df & | righttopClipping = dim::point2df(1.0f, 0.0f) , |
|||
const dim::point2df & | rightbottomClipping = dim::point2df(1.0f, 1.0f) , |
|||
const dim::point2df & | leftbottomClipping = dim::point2df(0.0f, 1.0f) , |
|||
const color & | lefttopColor = color(255) , |
|||
const color & | righttopColor = color(255) , |
|||
const color & | rightbottomColor = color(255) , |
|||
const color & | leftbottomColor = color(255) | |||
) |
void sp::video::OpenGLES1RenderSystem::draw2DImage | ( | Texture * | Tex, | |
const dim::rect2di & | Position, | |||
const dim::rect2df & | Clipping = dim::rect2df(0.0f, 0.0f, 1.0f, 1.0f) , |
|||
const color & | Color = color(255) | |||
) |
void sp::video::OpenGLES1RenderSystem::draw2DLine | ( | const dim::point2di & | PositionA, | |
const dim::point2di & | PositionB, | |||
const color & | Color = 255 | |||
) | [virtual] |
Draws a 2D line at the specified position (PositionA to PositionB).
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw2DLine | ( | const dim::point2di & | PositionA, | |
const dim::point2di & | PositionB, | |||
const color & | ColorA, | |||
const color & | ColorB | |||
) | [virtual] |
Draws a 2D line with a color change-over (ColorA to ColorB).
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw2DPolygon | ( | const ERenderPrimitives | Type, | |
const scene::SPrimitiveVertex2D * | VerticesList, | |||
u32 | Count | |||
) | [virtual] |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw2DRectangle | ( | const dim::rect2di & | Rect, | |
const color & | lefttopColor, | |||
const color & | righttopColor, | |||
const color & | rightbottomColor, | |||
const color & | leftbottomColor, | |||
bool | isSolid = true | |||
) | [virtual] |
Draws a 2D rectangle or quad with color change-overs.
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw2DRectangle | ( | const dim::rect2di & | Rect, | |
const color & | Color = 255 , |
|||
bool | isSolid = true | |||
) | [virtual] |
Draws a 2D rectangle or quad.
Rect,: | 2D area in screen space. | |
Color,: | Color which is to be used for the rectangle. | |
isSolid,: | If true the rectangle is filled. Otherwise four lines will be drawn. |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw3DLine | ( | const dim::vector3df & | PositionA, | |
const dim::vector3df & | PositionB, | |||
const color & | Color = 255 | |||
) | [virtual] |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw3DLine | ( | const dim::vector3df & | PositionA, | |
const dim::vector3df & | PositionB, | |||
const color & | ColorA, | |||
const color & | ColorB | |||
) | [virtual] |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw3DPoint | ( | const dim::vector3df & | Position, | |
const color & | Color = 255 | |||
) | [virtual] |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::draw3DTriangle | ( | Texture * | hTexture, | |
const dim::triangle3df & | Triangle, | |||
const color & | Color = 255 | |||
) | [virtual] |
Reimplemented from sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::drawMeshBuffer | ( | const MeshBuffer * | MeshBuffer | ) | [virtual] |
Renders the given hardware mesh buffer.
Implements sp::video::RenderSystem.
io::stringc sp::video::OpenGLES1RenderSystem::getVersion | ( | ) | const [virtual] |
Returns the renderer API version (e.g. "OpenGL 3.2" or "Direct3D9.0c").
Reimplemented from sp::video::GLBasePipeline.
bool sp::video::OpenGLES1RenderSystem::queryVideoSupport | ( | const EVideoFeatureQueries | Query | ) | const [virtual] |
Returns true if the specified feature is supported by the renderer.
Implements sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::setupConfiguration | ( | ) | [virtual] |
Implements sp::video::RenderSystem.
void sp::video::OpenGLES1RenderSystem::setupMaterialStates | ( | const MaterialStates * | Material | ) |