MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AddWireSphere

Method AddWireSphere

Source/Graphics/pxdebugdraw.cpp:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232int DebugDraw::AddWireSphere(const vec3 &position,
233 const float radius,
234 const vec4 &color,
235 const DDLifespan lifespan) {
236 if (radius == 0.0f) {
237 DisplayError("Error", "Creating debug draw sphere with radius zero");
238 }
239 DebugDrawElement *element = new DebugDrawWireSphere(position, radius, vec3(1.0f), color);
240 return AddElement(element, lifespan);
241}
242
243int DebugDraw::AddText(const vec3 &position, const std::string &content, const float &scale, const DDLifespan lifespan, const DDFlag &flags, const vec4 &color) {
244 DebugDrawElement *element = new DebugDrawText(position, scale, content, flags, color);

Callers 7

DrawMethod · 0.80
GridTestFunction · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
ASDebugDrawSphereFunction · 0.80

Calls 2

DisplayErrorFunction · 0.50
vec3Class · 0.50

Tested by

no test coverage detected