Lysa  0.0
Lysa 3D Engine
DebugRenderer Class Reference
+ Inheritance diagram for DebugRenderer:

Public Member Functions

 DebugRenderer (const DebugConfig &config, const RenderingConfiguration &renderingConfiguration)
 
void drawRayCasts (const std::shared_ptr< Node > &scene, const float4 &rayColor, const float4 &collidingRayColor)
 
const auto & getConfiguration () const
 
- Public Member Functions inherited from VectorRenderer
 VectorRenderer (bool depthTestEnable, bool enableAlphaBlending, bool useTextures, const RenderingConfiguration &renderingConfiguration, const std::string &name="VectorRenderer", const std::string &shadersName="vector", const std::string &glyphShadersName="glyph", bool filledTriangles=false, bool useCamera=true)
 
void drawLine (const float3 &from, const float3 &to, const float4 &color)
 
void drawTriangle (const float3 &v1, const float3 &v2, const float3 &v3, const float4 &color)
 
void drawText (const std::string &text, Font &font, float fontScale, const float3 &position, const quaternion &rotation, const float4 &innerColor)
 
void restart ()
 
void update (const vireo::CommandList &commandList, uint32 frameIndex)
 
void render (vireo::CommandList &commandList, const Scene &scene, const std::shared_ptr< vireo::RenderTarget > &colorAttachment, const std::shared_ptr< vireo::RenderTarget > &depthAttachment, uint32 frameIndex)
 
void render (vireo::CommandList &commandList, const std::shared_ptr< vireo::RenderTarget > &colorAttachment, const std::shared_ptr< vireo::RenderTarget > &depthAttachment, uint32 frameIndex)
 
virtual ~VectorRenderer () = default
 
 VectorRenderer (VectorRenderer &) = delete
 
VectorRenderer & operator= (VectorRenderer &) = delete
 

Additional Inherited Members

- Protected Member Functions inherited from VectorRenderer
int32 addTexture (const std::shared_ptr< Image > &texture)
 
int32 addFont (const Font &font)
 
- Protected Attributes inherited from VectorRenderer
const RenderingConfigurationconfig
 
bool vertexBufferDirty {true}
 
std::vector< VertexlinesVertices
 
std::vector< VertextriangleVertices
 
std::vector< VertexglyphVertices
 

Constructor & Destructor Documentation

DebugRenderer ( const DebugConfig config,
const RenderingConfiguration renderingConfiguration 
)

Member Function Documentation

void drawRayCasts ( const std::shared_ptr< Node > &  scene,
const float4 &  rayColor,
const float4 &  collidingRayColor 
)
const auto& getConfiguration ( ) const
inline