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

Method SetGeometry

trinity/TriRenderBatch.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void Tr2RenderBatch::SetGeometry( unsigned vertexDecl, const Tr2BufferAL& vb, uint32_t stride, const Tr2BufferAL& ib, uint32_t indexStride )
87{
88 m_vertexDeclaration = vertexDecl;
89 m_vertexStreams[0] = &vb;
90 m_vertexStreams[1] = nullptr;
91 m_stride[0] = stride;
92 m_indexBuffer = &ib;
93 m_indexStride = indexStride;
94}
95
96void Tr2RenderBatch::SetGeometry( unsigned vertexDecl, const Tr2SuballocatedBuffer::Allocation& vb, const Tr2SuballocatedBuffer::Allocation& ib )
97{

Callers 15

GetBatchesMethod · 0.80
CreateGeometryBatchFunction · 0.80
GetBatchesMethod · 0.80
GetPickingBatchesMethod · 0.80
GetBatchesMethod · 0.80
GetBatchesMethod · 0.80
GetBatchesMethod · 0.80
GetShadowBatchesMethod · 0.80
GetBatchWithEffectMethod · 0.80
GetShadowBatchesMethod · 0.80
RegisterAudioGeometryMethod · 0.80

Calls 2

GetBufferMethod · 0.45
GetStrideMethod · 0.45

Tested by

no test coverage detected