![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include <MDRRenderer.h>
Public Types | |
| enum | MDRTexUnit { TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3 } |
| enum | MDRTexUnit { TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3 } |
| enum | MDRTexUnit { TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3, TEXUNIT0, TEXUNIT1, TEXUNIT2, TEXUNIT3 } |
Public Member Functions | |
| MDRRenderer () | |
| ~MDRRenderer () | |
| unsigned int | getWidth () const |
| Returns width of a current viewport. | |
| unsigned int | getHeight () const |
| Returns height of a current viewport. | |
| unsigned int | getFrameCounter () const |
| Returns a frame counter, which is used for simple time measuring. | |
| bool | initialize (unsigned int aWidth, unsigned int aHeight) |
| Initialize rendering states like: blending, depth operations, culling etc. | |
| void | preFrameRender () |
| The method resets all necessary states in an every frame. Actually it clears a framebuffer only. | |
| void | postFrameRender () |
| The method increses theFrameCounter. | |
| void | activateTexture (MDRTexUnit aUnit, const MDRRendererTexture &aTexture) |
| The method activate a given texture on a selected texture unit. | |
| MDRRenderer () | |
| ~MDRRenderer () | |
| unsigned int | getWidth () const |
| Returns width of a current viewport. | |
| unsigned int | getHeight () const |
| Returns height of a current viewport. | |
| const MMatrix4f & | getMatrixP () const |
| Returns a current projection matrix. | |
| unsigned int | getFrameCounter () const |
| Returns a frame counter, which is used for simple time measuring. | |
| bool | initialize (unsigned int aWidth, unsigned int aHeight) |
| Initialize renderer with a given size of viewport expressed in pixels. | |
| void | preFrameRender () |
| The method resets all necessary states in every frame. In fact it clears a framebuffer only now. | |
| void | postFrameRender () |
| The method increses theFrameCounter. | |
| void | activateTexture (MDRTexUnit aUnit, const MDRRendererTexture &aTexture) |
| The method activate a given texture on a selected texture unit. | |
| MDRRenderer () | |
| ~MDRRenderer () | |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| const MMatrix4f & | getMatrixP () const |
| unsigned int | getFrameCounter () const |
| bool | initialize (unsigned int aWidth, unsigned int aHeight) |
| void | preFrameRender () |
| void | postFrameRender () |
| void | activateTexture (MDRTexUnit aUnit, const MDRRendererTexture &aTexture) |
Private Attributes | |
| unsigned int | theWidth |
| unsigned int | theHeight |
| unsigned int | theFrameCounter |
| MMatrix4f | theMatrixP |
The class represents a very simplified renderer object which holds several states such as: frame number, current texture, viewport, etc.
The class represents a very simplified renderer object which holds several states such as: frame number, current texture, viewport, projection matrix etc.
| MDRRenderer::MDRRenderer | ( | ) |
| MDRRenderer::~MDRRenderer | ( | ) |
| MDRRenderer::MDRRenderer | ( | ) |
| MDRRenderer::~MDRRenderer | ( | ) |
| MDRRenderer::MDRRenderer | ( | ) |
| MDRRenderer::~MDRRenderer | ( | ) |
| void MDRRenderer::activateTexture | ( | MDRTexUnit | aUnit, |
| const MDRRendererTexture & | aTexture | ||
| ) |
The method activate a given texture on a selected texture unit.
| void MDRRenderer::activateTexture | ( | MDRTexUnit | aUnit, |
| const MDRRendererTexture & | aTexture | ||
| ) |
| void MDRRenderer::activateTexture | ( | MDRTexUnit | aUnit, |
| const MDRRendererTexture & | aTexture | ||
| ) |
The method activate a given texture on a selected texture unit.
|
inline |
Returns a frame counter, which is used for simple time measuring.
|
inline |
|
inline |
Returns a frame counter, which is used for simple time measuring.
|
inline |
|
inline |
Returns height of a current viewport.
|
inline |
Returns height of a current viewport.
|
inline |
|
inline |
Returns a current projection matrix.
|
inline |
|
inline |
Returns width of a current viewport.
|
inline |
Returns width of a current viewport.
Initialize rendering states like: blending, depth operations, culling etc.
Initialize renderer with a given size of viewport expressed in pixels.
| void MDRRenderer::postFrameRender | ( | ) |
The method increses theFrameCounter.
| void MDRRenderer::postFrameRender | ( | ) |
| void MDRRenderer::postFrameRender | ( | ) |
The method increses theFrameCounter.
| void MDRRenderer::preFrameRender | ( | ) |
The method resets all necessary states in an every frame. Actually it clears a framebuffer only.
| void MDRRenderer::preFrameRender | ( | ) |
| void MDRRenderer::preFrameRender | ( | ) |
The method resets all necessary states in every frame. In fact it clears a framebuffer only now.
|
private |
|
private |
|
private |
|
private |