![]() |
NDEVR
API Documentation
|
A root render Object for OpenGL, which consists of a set Material, Model, and Geometry that is used together to optimally create a 3D render. More...
Public Member Functions | |
| GLESRenderObject (const DynamicPointer< GLESGraphicsDevice > &pipeline) | |
| Constructs a GLESRenderObject for the given device. | |
| ~GLESRenderObject () | |
| Destroys the render object and releases GPU resources. | |
| void | addInstance (const Geometry &geo, const Material &material) |
| Adds a geometry instance with the given material. | |
| void | cleanup () |
| Releases all GPU resources held by this render object. | |
| void | commit (GraphicsUpdateArguments &args) |
| Commits pending buffer changes to the GPU. | |
| bool | createPipeline (GraphicsUpdateArguments &args) |
| Creates or recreates the rendering pipeline for this object. | |
| fltp04 | fadeDistance () const |
| Returns the fade distance for this render object. | |
| bool | hasCommand () const |
| Checks whether there is a pending render command. | |
| bool | hasImage () const |
| Checks whether any material has a texture image. | |
| bool | hasOpacity () const |
| Checks whether any material has opacity. | |
| PrimitiveMode | indexMode () const |
| Returns the primitive drawing mode. | |
| bool | isFilledShape () const |
| Checks whether this render object draws filled shapes. | |
| const DynamicPointer< GLESMaterialManager > & | materialManager () const |
| Returns the material manager for this render object. | |
| uint01 | parity () const |
| Returns the rendering parity of this object. | |
| bool | removeInstance (const Geometry &geo) |
| Removes a geometry instance from this render object. | |
| bool | runCommand (GraphicsUpdateArguments &args, bool opacity_pass) |
| Executes the render command for this object. | |
| void | setDevice (const DynamicPointer< GLESGraphicsDevice > &instance) |
| Sets the graphics device for this render object. | |
| void | setMaterialManager (const DynamicPointer< GLESMaterialManager > &material_manager) |
| Sets the material manager for this render object. | |
| void | setParity (uint01 parity) |
| Sets the rendering parity. | |
| void | setPrimitiveMode (const PrimitiveMode &type) |
| Sets the primitive drawing mode. | |
| void | setRelativeToCamera (bool reletive_to_camera) |
| Sets whether rendering is relative to the camera position. | |
| void | setVertexManager (const DynamicPointer< GLESVertexManager > &vertex_manager) |
| Sets the vertex manager for this render object. | |
| bool | shouldRender (const Model &model) const |
| Checks whether the given model should be rendered. | |
| void | updateUniformBuffer (GraphicsUpdateArguments &args) |
| Updates uniform buffers for all geometry instances. | |
| const ConstPointer< GLESVertexManager > & | vertexManager () const |
| Returns the vertex manager for this render object. | |
Static Public Member Functions | |
| static GLint | RenderType (PrimitiveMode mode) |
| Converts a PrimitiveMode to the corresponding OpenGL draw mode. | |
A root render Object for OpenGL, which consists of a set Material, Model, and Geometry that is used together to optimally create a 3D render.
Definition at line 22 of file GLESRenderObject.h.
| GLESRenderObject::GLESRenderObject | ( | const DynamicPointer< GLESGraphicsDevice > & | pipeline | ) |
Constructs a GLESRenderObject for the given device.
| [in] | pipeline | The OpenGL graphics device. |
References GLESRenderObject().
Referenced by GLESRenderObject().
Adds a geometry instance with the given material.
| [in] | geo | The geometry to add. |
| [in] | material | The material for this instance. |
References e_index_mode_size, and Outline.
| void GLESRenderObject::commit | ( | GraphicsUpdateArguments & | args | ) |
Commits pending buffer changes to the GPU.
| [in] | args | The graphics update context. |
| bool GLESRenderObject::createPipeline | ( | GraphicsUpdateArguments & | args | ) |
Creates or recreates the rendering pipeline for this object.
| [in] | args | The graphics update context. |
| fltp04 GLESRenderObject::fadeDistance | ( | ) | const |
Returns the fade distance for this render object.
| bool GLESRenderObject::hasCommand | ( | ) | const |
Checks whether there is a pending render command.
| bool GLESRenderObject::hasImage | ( | ) | const |
Checks whether any material has a texture image.
| bool GLESRenderObject::hasOpacity | ( | ) | const |
Checks whether any material has opacity.
|
inline |
Returns the primitive drawing mode.
Definition at line 139 of file GLESRenderObject.h.
| bool GLESRenderObject::isFilledShape | ( | ) | const |
Checks whether this render object draws filled shapes.
|
inline |
Returns the material manager for this render object.
Definition at line 127 of file GLESRenderObject.h.
|
inline |
Returns the rendering parity of this object.
Definition at line 98 of file GLESRenderObject.h.
Referenced by setParity().
| bool GLESRenderObject::removeInstance | ( | const Geometry & | geo | ) |
Removes a geometry instance from this render object.
| [in] | geo | The geometry to remove. |
|
static |
Converts a PrimitiveMode to the corresponding OpenGL draw mode.
| [in] | mode | The primitive mode. |
| bool GLESRenderObject::runCommand | ( | GraphicsUpdateArguments & | args, |
| bool | opacity_pass ) |
Executes the render command for this object.
| [in] | args | The graphics update context. |
| [in] | opacity_pass | Whether this is the opacity rendering pass. |
| void GLESRenderObject::setDevice | ( | const DynamicPointer< GLESGraphicsDevice > & | instance | ) |
Sets the graphics device for this render object.
| [in] | instance | The OpenGL graphics device. |
| void GLESRenderObject::setMaterialManager | ( | const DynamicPointer< GLESMaterialManager > & | material_manager | ) |
Sets the material manager for this render object.
| [in] | material_manager | The material manager. |
| void GLESRenderObject::setParity | ( | uint01 | parity | ) |
|
inline |
Sets the primitive drawing mode.
| [in] | type | The primitive mode. |
Definition at line 118 of file GLESRenderObject.h.
References type.
| void GLESRenderObject::setRelativeToCamera | ( | bool | reletive_to_camera | ) |
Sets whether rendering is relative to the camera position.
| [in] | reletive_to_camera | True for camera-relative rendering. |
| void GLESRenderObject::setVertexManager | ( | const DynamicPointer< GLESVertexManager > & | vertex_manager | ) |
Sets the vertex manager for this render object.
| [in] | vertex_manager | The vertex manager. |
| bool GLESRenderObject::shouldRender | ( | const Model & | model | ) | const |
Checks whether the given model should be rendered.
| [in] | model | The model to check. |
| void GLESRenderObject::updateUniformBuffer | ( | GraphicsUpdateArguments & | args | ) |
Updates uniform buffers for all geometry instances.
| [in] | args | The graphics update context. |
|
inline |
Returns the vertex manager for this render object.
Definition at line 136 of file GLESRenderObject.h.