|
CeresEngine 0.2.0
A game development framework
|
A structure that contains information about a single geometry primitive to be drawn by the renderer. More...
#include <CeresEngine/Renderer/RendererGeometry.hpp>
Public Member Functions | |
| bool | frustumCull (const ConvexVolume &frustum) const noexcept |
| void | draw (GPUCommandBuffer &commandBuffer, const UInt32 instanceCount=1, const UInt32 instanceOffset=0) |
Public Attributes | |
| RendererMeshPtr | mesh = nullptr |
| The renderer mesh that represents the geometry. | |
| SubMesh | subMesh |
| The renderer sub-mesh that contains the portion of the mesh that this geometry is represented by. | |
| GPUUniformBuffer | uniformBuffer = nullptr |
| The object uniform buffer. | |
| RendererMaterial * | material = nullptr |
| The renderer material to be used when rendering this geometry with. | |
A structure that contains information about a single geometry primitive to be drawn by the renderer.
A single geometry usually maps 1:1 to a draw call.
| void CeresEngine::RendererGeometry::draw | ( | GPUCommandBuffer & | commandBuffer, |
| const UInt32 | instanceCount = 1, |
||
| const UInt32 | instanceOffset = 0 |
||
| ) |
| RendererMaterial* CeresEngine::RendererGeometry::material = nullptr |
The renderer material to be used when rendering this geometry with.
| RendererMeshPtr CeresEngine::RendererGeometry::mesh = nullptr |
The renderer mesh that represents the geometry.
| SubMesh CeresEngine::RendererGeometry::subMesh |
The renderer sub-mesh that contains the portion of the mesh that this geometry is represented by.
| GPUUniformBuffer CeresEngine::RendererGeometry::uniformBuffer = nullptr |
The object uniform buffer.
It should include all transformation matrices required by the object.