| 230 | } |
| 231 | |
| 232 | int 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 | |
| 243 | int 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); |
no test coverage detected