23 #include "generic/managed.h"
24 #include "meshes/mesh.h"
36 const Colour& colour=Colour::WHITE,
45 const Colour& colour=Colour::WHITE,
52 const Colour& colour=Colour::WHITE,
59 void set_point_size(
float ps);
61 float point_size()
const;
63 void update(
float dt);
65 void set_transform(
const Mat4& mat);
66 Mat4 transform()
const;
71 void frame_finished();
73 bool initialized_ =
false;
75 void initialize_actor();
80 enum DebugElementType {
86 float time_since_created = 0.0;
87 DebugElementType type = DET_LINE;
88 Colour colour = Colour::WHITE;
89 bool depth_test =
true;
96 std::list<DebugElement> elements_;
98 SubMesh* lines_without_depth_ =
nullptr;
99 SubMesh* lines_with_depth_ =
nullptr;
100 SubMesh* points_without_depth_ =
nullptr;
101 SubMesh* points_with_depth_ =
nullptr;
107 float current_point_size_ = 0.001f;