molecular
Public Member Functions | List of all members
molecular::gfx::DrawDebugMesh Class Reference

Draws lines and text. More...

#include <DrawDebugMesh.h>

Inheritance diagram for molecular::gfx::DrawDebugMesh:
molecular::gfx::DrawingFunction molecular::gfx::RenderFunction

Public Member Functions

template<class TRenderManager >
 DrawDebugMesh (TRenderManager &renderManager)
 
 ~DrawDebugMesh () override
 
void Execute () override
 
util::AxisAlignedBox GetBounds () const override
 
void DrawLine (const Vector3 &from, const Vector3 &to, const Vector3 &color)
 
void DrawText (const std::string &text, const Vector3 &position)
 
void DrawAxisAlignedBox (const Vector3 &min, const Vector3 &max, const Vector3 &color)
 
void DrawCoordSystem (const Matrix4 &coordSystem)
 
- Public Member Functions inherited from molecular::gfx::DrawingFunction
template<class TRenderManager >
 DrawingFunction (TRenderManager &manager)
 
bool BoundsChangedSince (int framecounter) const override
 
- Public Member Functions inherited from molecular::gfx::RenderFunction
template<class TRenderManager >
 RenderFunction (TRenderManager &manager)
 
 RenderFunction (Scoping &scoping, RenderCmdSink &renderer)
 
virtual ~RenderFunction ()
 
virtual void Set (Hash, bool)
 Set bool property with given name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from molecular::gfx::DrawingFunction
RenderCmdSink::ProgramPrepareProgram ()
 
- Protected Member Functions inherited from molecular::gfx::RenderFunction
template<class T >
const T * GetVariable (Hash key)
 Convenience shortcut to a variable pointer from the dynamic scope. More...
 
- Protected Attributes inherited from molecular::gfx::DrawingFunction
ProgramProvidermProgramProvider
 
- Protected Attributes inherited from molecular::gfx::RenderFunction
ScopingmScoping
 
RenderCmdSinkmRenderer
 

Detailed Description

Draws lines and text.

Buffers are erased after each Execute().

Todo:
Text orientation.

Constructor & Destructor Documentation

template<class TRenderManager >
molecular::gfx::DrawDebugMesh::DrawDebugMesh ( TRenderManager &  renderManager)
molecular::gfx::DrawDebugMesh::~DrawDebugMesh ( )
inlineoverride

Member Function Documentation

void molecular::gfx::DrawDebugMesh::DrawAxisAlignedBox ( const Vector3 min,
const Vector3 max,
const Vector3 color 
)
inline
void molecular::gfx::DrawDebugMesh::DrawCoordSystem ( const Matrix4 coordSystem)
inline
void molecular::gfx::DrawDebugMesh::DrawLine ( const Vector3 from,
const Vector3 to,
const Vector3 color 
)
inline
void molecular::gfx::DrawDebugMesh::DrawText ( const std::string &  text,
const Vector3 position 
)
inline
void molecular::gfx::DrawDebugMesh::Execute ( )
inlineoverridevirtual
util::AxisAlignedBox molecular::gfx::DrawDebugMesh::GetBounds ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following file: