MCPcopy Create free account
hub / github.com/axmolengine/axmol / duAppendBoxWire

Function duAppendBoxWire

3rdparty/recast/DebugDraw.cpp:219–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void duAppendBoxWire(struct duDebugDraw* dd, float minx, float miny, float minz,
220 float maxx, float maxy, float maxz, unsigned int col)
221{
222 if (!dd) return;
223 // Top
224 dd->vertex(minx, miny, minz, col);
225 dd->vertex(maxx, miny, minz, col);
226 dd->vertex(maxx, miny, minz, col);
227 dd->vertex(maxx, miny, maxz, col);
228 dd->vertex(maxx, miny, maxz, col);
229 dd->vertex(minx, miny, maxz, col);
230 dd->vertex(minx, miny, maxz, col);
231 dd->vertex(minx, miny, minz, col);
232
233 // bottom
234 dd->vertex(minx, maxy, minz, col);
235 dd->vertex(maxx, maxy, minz, col);
236 dd->vertex(maxx, maxy, minz, col);
237 dd->vertex(maxx, maxy, maxz, col);
238 dd->vertex(maxx, maxy, maxz, col);
239 dd->vertex(minx, maxy, maxz, col);
240 dd->vertex(minx, maxy, maxz, col);
241 dd->vertex(minx, maxy, minz, col);
242
243 // Sides
244 dd->vertex(minx, miny, minz, col);
245 dd->vertex(minx, maxy, minz, col);
246 dd->vertex(maxx, miny, minz, col);
247 dd->vertex(maxx, maxy, minz, col);
248 dd->vertex(maxx, miny, maxz, col);
249 dd->vertex(maxx, maxy, maxz, col);
250 dd->vertex(minx, miny, maxz, col);
251 dd->vertex(minx, maxy, maxz, col);
252}
253
254void duAppendBoxPoints(struct duDebugDraw* dd, float minx, float miny, float minz,
255 float maxx, float maxy, float maxz, unsigned int col)

Callers 2

drawMeshTileBVTreeFunction · 0.85
duDebugDrawBoxWireFunction · 0.85

Calls 1

vertexMethod · 0.45

Tested by

no test coverage detected