|
CeresEngine 0.2.0
A game development framework
|
The rendering element for the terrain chunks. More...
Public Member Functions | |
| Element (RendererTerrain &terrain, MeshPtr mesh) | |
| ~Element () final=default | |
| const GPUVertexFormat & | getVertexFormat () const noexcept final |
| Returns the vertex format which the graphics pipeline must be compatible with. | |
| void | draw (GPUCommandBuffer &commandBuffer) const final |
| Submits a draw command with the given renderer element. | |
| const GPUVertexBuffer & | getVertexBuffer () const noexcept final |
| const GPUIndexBuffer & | getIndexBuffer () const noexcept final |
| const RendererMeshPtr & | getMesh () const noexcept |
| const RendererMaterial & | getMaterial () const noexcept final |
| The material for the render element. | |
| AABox | getBoundingBox () const final |
| Gets the renderable bounding box. | |
| Sphere | getBoundingSphere () const final |
| Gets the renderable bounding sphere. | |
Public Member Functions inherited from CeresEngine::RendererElement | |
| virtual | ~RendererElement ()=default |
Private Attributes | |
| RendererTerrain & | mTerrain |
| The owning terrain object. | |
| Vector3i | mPosition |
| RendererMeshPtr | mMesh |
The rendering element for the terrain chunks.
|
explicit |
|
finaldefault |
|
finalvirtual |
Submits a draw command with the given renderer element.
Implements CeresEngine::RendererElement.
|
finalvirtual |
Gets the renderable bounding box.
Implements CeresEngine::RendererElement.
|
finalvirtual |
Gets the renderable bounding sphere.
Implements CeresEngine::RendererElement.
|
finalvirtualnoexcept |
Implements CeresEngine::RendererElement.
|
inlinefinalvirtualnoexcept |
The material for the render element.
Implements CeresEngine::RendererElement.
|
inlinenoexcept |
|
finalvirtualnoexcept |
Implements CeresEngine::RendererElement.
|
finalvirtualnoexcept |
Returns the vertex format which the graphics pipeline must be compatible with.
Implements CeresEngine::RendererElement.
|
private |
|
private |
|
private |
The owning terrain object.