Renderer Class
Unigine renderer.
Renderer Class
Members
Vec3 getCameraPosition()
Return current camera position.Return value
Returns current camera position.Mat4 getIModelview()
Return current inverse modelview matrix.Return value
Returns current inverse modelview matrix.void setMaterial(int pass, Material material)
Set material and initialize all material textures.Arguments
- int pass - Rendering pass.
- Material material - Material smart pointer.
void setModelview(Mat4 modelview)
Sets current modelview matrix.Arguments
- Mat4 modelview - Modelview matrix.
Mat4 getModelview()
Return current modelview matrix.Return value
Returns current modelview matrix.int isNode()
Return a value indicates that the node rendering is in process.Return value
Returns 1 if the node rendering is in process.void setObjectSurface(int pass, Object object, int surface, Shader shader, Material material)
Set shader and material and initialize all their rendering parameters.Arguments
- int pass - Rendering pass.
- Object object - Object smart pointer.
- int surface - Surface number.
- Shader shader - Shader smart pointer.
- Material material - Material smart pointer.
void setObjectSurface(int pass, Object object, int surface)
Set shader and material and initialize all their rendering parameters.Arguments
- int pass - Rendering pass.
- Object object - Object smart pointer.
- int surface - Surface number.
void setProjection(mat4 projection)
Sets current projection matrix.Arguments
- mat4 projection - Projection matrix.
mat4 getProjection()
Return current projection matrix.Return value
Returns current projection matrix.int isReflection()
Return a value indicates that the reflection rendering is in process.Return value
Returns 1 if the reflection rendering is in process.int getReflectionMask()
Return current reflection mask.Return value
Returns current reflection mask.void setShader(int pass, Shader shader, bool screen_space = false)
Set shader and initialize all shader parameters.Arguments
- int pass
- Shader shader
- bool screen_space
void setShaderMaterial(int pass, Shader shader, Material material)
Set shader and material and initialize all their rendering parameters.Arguments
- int pass - Rendering pass.
- Shader shader - Shader smart pointer.
- Material material - Material smart pointer.
int getViewportMask()
Return current viewport mask.Return value
Returns current viewport mask.float getZFar()
Return current far clipping plane.Return value
Returns current far clipping plane.float getZNear()
Return current near clipping plane.Return value
Returns current near clipping plane.void restoreState()
Restores current renderer matrices.void saveState()
Saves current renderer matrices.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)