CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::RendererGeometry Struct Referencefinal

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.
 
RendererMaterialmaterial = nullptr
 The renderer material to be used when rendering this geometry with.
 

Detailed Description

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.

Member Function Documentation

◆ draw()

void CeresEngine::RendererGeometry::draw ( GPUCommandBuffer commandBuffer,
const UInt32  instanceCount = 1,
const UInt32  instanceOffset = 0 
)

◆ frustumCull()

bool CeresEngine::RendererGeometry::frustumCull ( const ConvexVolume &  frustum) const
noexcept

Member Data Documentation

◆ material

RendererMaterial* CeresEngine::RendererGeometry::material = nullptr

The renderer material to be used when rendering this geometry with.

◆ mesh

RendererMeshPtr CeresEngine::RendererGeometry::mesh = nullptr

The renderer mesh that represents the geometry.

◆ subMesh

SubMesh CeresEngine::RendererGeometry::subMesh

The renderer sub-mesh that contains the portion of the mesh that this geometry is represented by.

◆ uniformBuffer

GPUUniformBuffer CeresEngine::RendererGeometry::uniformBuffer = nullptr

The object uniform buffer.

It should include all transformation matrices required by the object.


The documentation for this struct was generated from the following file: