MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _vertex

Method _vertex

Engine/source/navigation/duDebugDrawTorque.cpp:149–164  ·  view source on GitHub ↗

Push a vertex onto the buffer.

Source from the content-addressed store, hash-verified

147
148/// Push a vertex onto the buffer.
149void duDebugDrawTorque::_vertex(const float x, const float y, const float z, unsigned int color)
150{
151 // Use override color if we must.
152 //if(mOverride)
153 //color = mOverrideColor;
154 if(mCurrColor != color || !mBuffers.last().buffer.size())
155 {
156 U8 r, g, b, a;
157 // Convert color integer to components.
158 rcCol(color, r, g, b, a);
159 mBuffers.last().buffer.push_back(Instruction(r, g, b, a));
160 mCurrColor = color;
161 }
162 // Construct vertex data.
163 mBuffers.last().buffer.push_back(Instruction(x, y, z));
164}
165
166/// End drawing primitives.
167void duDebugDrawTorque::end()

Callers

nothing calls this directly

Calls 5

rcColFunction · 0.85
InstructionClass · 0.85
sizeMethod · 0.45
lastMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected