namespace: ewol::openGL
Description:
enum:
Synopsis:
void lock ();
void unLock ();
void setBasicMatrix (const mat4 & _newOne);
void setMatrix (const mat4 & _newOne);
void push ();
void pop ();
const mat4 & getMatrix ();
const mat4 & getCameraMatrix ();
void setCameraMatrix (const mat4 & _newOne);
void finish ();
void flush ();
void swap ();
void enable (enum openGlFlags _flagID);
void disable (enum openGlFlags _flagID);
void updateAllFlags ();
void activeTexture (uint32_t _flagID);
void desActiveTexture (uint32_t _flagID);
void drawArrays (uint32_t _mode,
int32_t _first,
int32_t _count);
void drawElements (uint32_t _mode,
const std::vector<uint32_t> & _indices);
void drawElements16 (uint32_t _mode,
const std::vector<uint16_t> & _indices);
void drawElements8 (uint32_t _mode,
const std::vector<uint8_t> & _indices);
void useProgram (int32_t _id);
Detail:
lock
void lock ();
Lock the openGL context for one user only == > better to keep flags and other things ...
unLock
void unLock ();
Un-lock the openGL context for an other user...
setBasicMatrix
void setBasicMatrix (const mat4 & _newOne);
When you will done an opengl rendering, you might call this reset matrix first. It remove all the stach of the matrix pushed.
setMatrix
void setMatrix (const mat4 & _newOne);
this funtion configure the current use matrix for the renderer (call @ref Push before, and @ref Pop when no more needed).
Note: We did not use opengl standard system, due to the fact that is not supported in opengl ES-2
push
void push ();
store current matrix in the matrix stack.
pop
void pop ();
remove the current matrix and get the last one from the matrix stack.
getMatrix
const mat4 & getMatrix ();
get a reference on the current matrix destinate to opengl renderer.
Return: | | The requested matrix. |
getCameraMatrix
const mat4 & getCameraMatrix ();
get a reference on the current matrix camera destinate to opengl renderer.
Return: | | The requested matrix. |
setCameraMatrix
void setCameraMatrix (const mat4 & _newOne);
set a reference on the current camera to opengl renderer.
Parameter [input]: | _newOne | The requested matrix. |
finish
void finish ();
flush
void flush ();
swap
void swap ();
enable
void enable (enum openGlFlags _flagID);
enable a flag on the system
Parameter [input]: | flagID | The flag requested |
disable
void disable (enum openGlFlags _flagID);
disable a flag on the system
Parameter [input]: | flagID | The flag requested |
updateAllFlags
void updateAllFlags ();
activeTexture
void activeTexture (uint32_t _flagID);
enable Texture on the system
Parameter [input]: | flagID | The flag requested |
desActiveTexture
void desActiveTexture (uint32_t _flagID);
disable Texture on the system
Parameter [input]: | flagID | The flag requested |
drawArrays
void drawArrays (uint32_t _mode,
int32_t _first,
int32_t _count);
draw a specific array == > this enable mode difference ...
drawElements
void drawElements (uint32_t _mode,
const std::vector<uint32_t> & _indices);
drawElements16
void drawElements16 (uint32_t _mode,
const std::vector<uint16_t> & _indices);
drawElements8
void drawElements8 (uint32_t _mode,
const std::vector<uint8_t> & _indices);
useProgram
void useProgram (int32_t _id);
Use openGL program