|
|
@@ -30,13 +30,13 @@ struct DebugLine
|
|
|
void add_axes(const Matrix4x4& m, float length = 1.0f);
|
|
|
|
|
|
/// Adds a circle at @a center with the given @a radius and @a normal vector.
|
|
|
- void add_circle(const Vector3& center, float radius, const Vector3& normal, const Color4& color, uint32_t segments = 36);
|
|
|
+ void add_circle(const Vector3& center, float radius, const Vector3& normal, const Color4& color, uint32_t segments = NUM_SEGMENTS);
|
|
|
|
|
|
/// Adds a cone with the base centered at @a from and the tip at @a to.
|
|
|
- void add_cone(const Vector3& from, const Vector3& to, float radius, const Color4& color, uint32_t segments = 36);
|
|
|
+ void add_cone(const Vector3& from, const Vector3& to, float radius, const Color4& color, uint32_t segments = NUM_SEGMENTS);
|
|
|
|
|
|
/// Adds a sphere at @a center with the given @a radius and @a color.
|
|
|
- void add_sphere(const Vector3& center, const float radius, const Color4& color, uint32_t segments = 36);
|
|
|
+ void add_sphere(const Vector3& center, const float radius, const Color4& color, uint32_t segments = NUM_SEGMENTS);
|
|
|
|
|
|
/// Adds an orientd bounding box. @a tm describes the position and orientation of
|
|
|
/// the box. @a half_extents describes the size of the box along the axis.
|
|
|
@@ -48,6 +48,9 @@ struct DebugLine
|
|
|
/// Submits the lines to renderer for drawing.
|
|
|
void submit();
|
|
|
|
|
|
+ /// Default number of segments.
|
|
|
+ static const uint32_t NUM_SEGMENTS = 36;
|
|
|
+
|
|
|
public:
|
|
|
|
|
|
enum { MARKER = 0xd7c17715 };
|