Lysa  0.0
Lysa 3D Engine
DebugRenderer Class Reference

Detailed Description

Renderer for physics debugging

+ Inheritance diagram for DebugRenderer:

Public Member Functions

 DebugRenderer (const DebugConfiguration &config, const RendererConfiguration &renderingConfiguration, vireo::ImageFormat outputFormat)
 
void drawRayCasts (const std::unordered_set< const RayCast * > &raycasts, const float4 &rayColor, const float4 &collidingRayColor)
 
const auto & getConfiguration () const
 
- Public Member Functions inherited from Vector3DRenderer
 Vector3DRenderer (const RendererConfiguration &config, vireo::ImageFormat outputFormat, bool useCamera=true, bool depthTestEnable=true, bool filledTriangles=false, bool enableAlphaBlending=true, const std::string &name="VectorRenderer", const std::string &shadersName="vector", const std::string &glyphShadersName="glyph")
 
bool isUseCamera () const
 
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 drawImage (unique_id image, const float3 &position, const quaternion &rotation, const float2 &size, 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 Camera &camera, const std::shared_ptr< vireo::RenderTarget > &colorAttachment, const std::shared_ptr< vireo::RenderTarget > &depthAttachment, uint32 frameIndex)
 
virtual ~Vector3DRenderer () = default
 
 Vector3DRenderer (Vector3DRenderer &) = delete
 
Vector3DRenderer & operator= (Vector3DRenderer &) = delete
 

Additional Inherited Members

- Protected Member Functions inherited from Vector3DRenderer
int32 addTexture (const Image &texture)
 
int32 addFont (const Font &font)
 
- Protected Attributes inherited from Vector3DRenderer
ImageManagerimageManager
 
const RendererConfigurationconfig
 
bool vertexBufferDirty {true}
 
std::vector< VertexlinesVertices
 
std::vector< VertextriangleVertices
 
std::vector< VerteximagesVertices
 
std::vector< VertexglyphVertices
 

Constructor & Destructor Documentation

DebugRenderer ( const DebugConfiguration &  config,
const RendererConfiguration renderingConfiguration,
vireo::ImageFormat  outputFormat 
)

Constructor

Parameters
configDebug configuration
renderingConfigurationRendering configuration
outputFormatOutput image format

Member Function Documentation

void drawRayCasts ( const std::unordered_set< const RayCast * > &  raycasts,
const float4 &  rayColor,
const float4 &  collidingRayColor 
)
const auto& getConfiguration ( ) const
inline

Get the debug configuration