MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetBatches

Method GetBatches

trinity/Tr2InstancedMesh.cpp:213–219  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Collects render batches from this instanced mesh. Arguments: batches - Batch accumulator to add batches to areas - Vector of mesh areas for which batches need to be added data - Per-object data --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

211// data - Per-object data
212// --------------------------------------------------------------------------------------
213void Tr2InstancedMesh::GetBatches( ITriRenderBatchAccumulator* batches,
214 const Tr2MeshAreaVector* areas,
215 const Tr2PerObjectData* data,
216 float screenSize ) const
217{
218 GetBatches( batches, areas, data, screenSize, false );
219}
220
221
222void Tr2InstancedMesh::GetBatches( ITriRenderBatchAccumulator* batches,

Callers

nothing calls this directly

Calls 15

GetBatchesFunction · 0.85
GetPrimitiveCountFunction · 0.85
GetMaterialInterfaceMethod · 0.80
GetIndexMethod · 0.80
GetReversedMethod · 0.80
SetGeometryMethod · 0.80
GetStartIndexMethod · 0.80
IsGoodMethod · 0.45
IsInstanceDataReadyMethod · 0.45
GetMeshLodMethod · 0.45

Tested by

no test coverage detected