MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetFirstIndex

Method GetFirstIndex

GTE/Graphics/IndexBuffer.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59uint32_t IndexBuffer::GetFirstIndex() const
60{
61 if (mFirstPrimitive == 0)
62 {
63 return 0;
64 }
65
66 int32_t i = BitHacks::Log2OfPowerOfTwo(mPrimitiveType);
67 return msIndexCounter[i](mFirstPrimitive);
68}
69
70bool IndexBuffer::SetPoint(uint32_t i, uint32_t v)
71{

Callers 1

DrawPrimitiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected