Push a vertex onto the buffer.
| 147 | |
| 148 | /// Push a vertex onto the buffer. |
| 149 | void 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. |
| 167 | void duDebugDrawTorque::end() |
nothing calls this directly
no test coverage detected