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

Method GetPoint

GTE/Graphics/IndexBuffer.cpp:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool IndexBuffer::GetPoint(uint32_t i, uint32_t& v) const
93{
94 if (ValidPrimitiveType(IP_HAS_POINTS))
95 {
96 if (mData && i < mNumPrimitives)
97 {
98 if (mElementSize == sizeof(uint32_t))
99 {
100 uint32_t const* index = i + Get<uint32_t>();
101 v = *index;
102 }
103 else
104 {
105 uint16_t const* index = i + Get<uint16_t>();
106 v = static_cast<uint32_t>(*index);
107 }
108 return true;
109 }
110 }
111 return false;
112}
113
114bool IndexBuffer::SetSegment(uint32_t i, uint32_t v0, uint32_t v1)
115{

Callers 4

PickPointsMethod · 0.80
CreateEggShapeMethod · 0.80
CreateSceneMethod · 0.80
ComputeIntersectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected