17 #ifndef AGXRENDER_RENDERERSINGLETON_H 18 #define AGXRENDER_RENDERERSINGLETON_H 21 # pragma warning(push) 22 # pragma warning( disable : 4251 ) 37 class ConstraintImplementation;
65 void clearTemporaries();
82 : m_position( position ),
m_size( size ), m_color( color ) {}
106 : m_start( start ), m_end( end ),
m_size( size ), m_color( color ) {}
134 : m_text( text ), m_position( position ), m_color( color ) {}
159 : m_v0( v0 ), m_v1( v1 ), m_v2( v2 ),
m_size(size), m_color( color ) {}
205 void add(
const Point& point );
210 add(
Point( position, size, color ) );
215 void addStatic(
const Point& point );
220 addStatic(
Point( position, size, color ) );
226 void add(
const Line& line );
231 add(
Line( start, end, size, color ) );
236 void addStatic(
const Line& line );
241 addStatic(
Line( start, end, size, color ) );
247 void add(
const Text& text );
252 add(
Text( text, position, color ) );
257 void addStatic(
const Text& text );
262 addStatic(
Text( text, position, color ) );
273 add(
Triangle(v0, v1, v2, size, color));
278 void addStatic(
const Triangle& triangle);
283 addStatic(
Triangle(v0, v1, v2, size, color));
296 SINGLETON_CLASSNAME_METHOD();
318 # pragma warning(pop) Defines a Line to be used in DebugRendering.
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
void add(const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color)
Add temporary point (sphere).
Point(const agx::Vec3 &position, agx::Real size=agx::Real(0.4), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
A class holding 4 dimensional vectors and providing basic arithmetic.
void addStatic(const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, const agx::Real size, const agx::Vec4f &color)
Add static triangle.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
void addStatic(const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color)
Add static point (sphere).
#define AGXPHYSICS_EXPORT
The base class for a constraint.
Namespace containing classes for handling debug rendering of collision geometries, constraints, contacts and rigid bodies.
Frame(const agx::AffineMatrix4x4 &frame, agx::Real scale=agx::Real(0.5), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Defines Text to be used in DebugRendering.
Text(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
AGXPHYSICS_EXPORT void debugRenderConstraintFrames(const agx::ConstraintImplementation *constraint, float scale, agxRender::RenderManager *mgr=nullptr, agx::Bool overrideInvalid=false)
Line(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size=0.02f, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Vec4f getColor() const
Triangle(const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, agx::Real size=0.02f, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
AGXPHYSICS_EXPORT void debugRenderFrame(const agx::AffineMatrix4x4 &transform, float scale, const agx::Vec4f &colorIdentifier, agxRender::RenderManager *mgr=nullptr)
void addStatic(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color)
Add static line (cylinder)
agx::Real getScale() const
void addStatic(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add static text.
void add(const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, const agx::Real size, const agx::Vec4f &color)
Add temporary triangle.
const agx::AffineMatrix4x4 & getFrame() const
Defines a Triangle to be used in DebugRendering.
AGXBRICK_EXPORT bool isInitialized()
void add(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add temporary text.
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Utility class for creating debug rendering objects.
Defines a point to be used in DebugRendering.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
void add(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color)
Add temporary line (cylinder)