MCPcopy Create free account
hub / github.com/OGRECave/ogre / drawWireBox

Method drawWireBox

OgreMain/src/OgreDefaultDebugDrawer.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 mAxes.beginUpdate(0);
68}
69void DefaultDebugDrawer::drawWireBox(const AxisAlignedBox& aabb, const ColourValue& colour)
70{
71 beginLines();
72
73 int base = mLines.getCurrentVertexCount();
74 for (const auto& corner : aabb.getAllCorners())
75 {
76 mLines.position(corner);
77 mLines.colour(colour);
78 }
79 // see AxisAlignedBox::getAllCorners
80 int idx[] = {0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 6, 1, 5, 2, 4, 3, 7};
81 for (int i : idx)
82 mLines.index(base + i);
83}
84void DefaultDebugDrawer::drawFrustum(const Frustum* frust)
85{
86 beginLines();

Callers

nothing calls this directly

Calls 1

getCurrentVertexCountMethod · 0.80

Tested by

no test coverage detected