Access to debugging like viewport-output. More...
Public Member Functions | |
template<class T > | |
DebugDraw & | operator+= (const T &) |
Output the geometry-objects to the viewport. More... | |
DebugDraw & | aabb (const AABB &) |
Drawing AABB . | |
DebugDraw & | aabb (const AABB &, const Color &) |
DebugDraw & | aabb (const Vec3 &min, const Vec3 &max) |
DebugDraw & | aabb (const Vec3 &, const Vec3 &, const Color &) |
DebugDraw & | color (const Color::value_t &d) |
Set current color for draw in the viewport. | |
DebugDraw & | color (const Color &d) |
Color | color () const |
Get current color of the viewport. | |
DebugDraw & | circle (const Vec3 &p, const Vec3 &normal, float radius) |
Drawing a 2D-circle like billboard. | |
DebugDraw & | circle (const Vec3 &p, const Vec3 &normal, float radius, const Color &) |
DebugDraw & | layer (const std::string &name) |
Creates a named layer which contains all next drawing. | |
DebugDraw & | line (const Line3 &l) |
Drawing Line3 . | |
DebugDraw & | line (const Line3 &l, const Color &color) |
DebugDraw & | line (const Line3 &l, const Color &colorBegin, const Color &colorEnd) |
DebugDraw & | line (const Line3 &, const Color &colorBegin, const Color &colorEnd, const Color &colorPoint) |
DebugDraw & | line (const Vec3 &a, const Vec3 &b) |
Drawing a line from point a to point b . | |
DebugDraw & | line (const Vec3 &a, const Vec3 &b, const Color &color) |
DebugDraw & | line (const Vec3 &a, const Vec3 &b, const Color &colorBegin, const Color &colorEnd) |
DebugDraw & | mesh (const Mesh &) |
Drawing Mesh . | |
DebugDraw & | note (const Vec3 &p, float v) |
Print a float value to the viewport. | |
DebugDraw & | note (const Vec3 &p, float, const Color &) |
DebugDraw & | note (const Vec3 &p, const std::string &s) |
Print a string to the viewport. | |
DebugDraw & | note (const Vec3 &p, const std::string &, const Color &) |
DebugDraw & | point (const Vec3 &) |
Light a point. | |
DebugDraw & | point (const Vec3 &, const Color &) |
DebugDraw & | sphere (const Vec3 &p, float radius) |
Drawing a sphere. | |
DebugDraw & | sphere (const Vec3 &p, float radius, const Color &) |
DebugDraw & | triangle (const Vec3 &a, const Vec3 &b, const Vec3 &c) |
Drawing a triangle. | |
DebugDraw & | triangle (const Vec3 &a, const Vec3 &b, const Vec3 &c, const Color &color) |
DebugDraw & | triangle (const Vec3 &a, const Vec3 &b, const Vec3 &c, const Color &, const Color &, const Color &) |
DebugDraw & | vector (const Vec3 &p, const Vec3 &v) |
Drawing a vector. | |
DebugDraw & | vector (const Vec3 &p, const Vec3 &v, const Color &color) |
DebugDraw & | vector (const Vec3 &p, const Vec3 &v, const Color &, const Color &) |
DebugDraw & | clear () |
Clear the viewport. More... | |
DebugDraw & | transform (const Mat4 &m) |
Set a transformation matrix to the viewport. More... | |
Mat4 | transform () const |
Get a current transformation matrix from the viewport. More... | |
template<> | |
DebugDraw & | operator+= (const Color &v) |
template<> | |
DebugDraw & | operator+= (const AABB &v) |
template<> | |
DebugDraw & | operator+= (const Line3 &v) |
template<> | |
DebugDraw & | operator+= (const Lines3 &vs) |
template<> | |
DebugDraw & | operator+= (const Mesh &v) |
Access to debugging like viewport-output.
Use this two lines for access to DebugDraw
:
DebugDraw& coat::scripto::DebugDraw::operator+= | ( | const T & | ) |
Output the geometry-objects to the viewport.
DebugDraw & coat::scripto::DebugDraw::clear | ( | ) |
Clear the viewport.
Set a transformation matrix to the viewport.
|
inline |
Get a current transformation matrix from the viewport.