RavEngine
Loading...
Searching...
No Matches
RavEngine::DebugDrawer Class Reference

Public Member Functions

void DrawRectangularPrism (const matrix4 &transform, const color_t color, const vector3 &deltas)
 
void DrawSphere (const matrix4 &transform, const color_t color, decimalType radius)
 
void DrawCylinder (const matrix4 &transform, const color_t color, decimalType radius, decimalType height)
 
void DrawCapsule (const matrix4 &transform, const color_t color, decimalType radius, decimalType height)
 
void DrawPrism (const matrix4 &transform, const color_t color, decimalType radius, decimalType height, decimalType sides)
 
void DrawArrow (const vector3 &start, const vector3 &end, const color_t color)
 
void DrawWireframeMesh (const matrix4 &transform, const Ref< MeshAsset > &mesh)
 

Member Function Documentation

◆ DrawArrow()

void DebugDrawer::DrawArrow ( const vector3 &  start,
const vector3 &  end,
const color_t  color 
)

Render an arrow

Parameters
startthe begin coordinate for the arrow
endthe end coordinate for the arrow
colorthe color of the arrow

◆ DrawCapsule()

void DebugDrawer::DrawCapsule ( const matrix4 &  transform,
const color_t  color,
decimalType  radius,
decimalType  height 
)

Render a wireframe capsule

Parameters
transformthe world-space transform for this shape
colorthe hexadecimal color for this wireframe, in format 0xRRGGBBAA
radiusthe radius of the cylinder
heightthe height of the cylinder

◆ DrawCylinder()

void DebugDrawer::DrawCylinder ( const matrix4 &  transform,
const color_t  color,
decimalType  radius,
decimalType  height 
)

Render a wireframe cylinder

Parameters
transformthe world-space transform for this shape
colorthe hexadecimal color for this wireframe, in format 0xRRGGBBAA
radiusthe radius of the cylinder
heightthe height of the cylinder

◆ DrawPrism()

void DebugDrawer::DrawPrism ( const matrix4 &  transform,
const color_t  color,
decimalType  radius,
decimalType  height,
decimalType  sides 
)

Render an N-sided prism capsule

Parameters
transformthe world-space transform for this shape
colorthe hexadecimal color for this wireframe, in format 0xRRGGBBAA
radiusthe radius of the prism
heightthe height of the prism
sidesthe number of sides of the prism

◆ DrawRectangularPrism()

void DebugDrawer::DrawRectangularPrism ( const matrix4 &  transform,
const color_t  color,
const vector3 &  deltas 
)

Render a wirefram rectangular prism

Parameters
transformthe world-space trasformation for this shape
colorthe hexadecimal color for this wireframe, in format 0xRRGGBBAA
deltasthe x, y, and z lengths of the prism

◆ DrawSphere()

void DebugDrawer::DrawSphere ( const matrix4 &  transform,
const color_t  color,
decimalType  radius 
)

Render a wireframe sphere

Parameters
transformthe world-space transform for this shape
colorthe hexadecimal color for this wireframe, in format 0xRRGGBBAA
radiusthe radius of the sphere

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