Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvRendering::Core::ShapeDrawer Class Reference

#include <ShapeDrawer.h>

Public Member Functions

 ShapeDrawer (OvRendering::Core::Renderer &p_renderer)
 
 ~ShapeDrawer ()
 
void SetViewProjection (const OvMaths::FMatrix4 &p_viewProjection)
 
void DrawLine (const OvMaths::FVector3 &p_start, const OvMaths::FVector3 &p_end, const OvMaths::FVector3 &p_color, float p_lineWidth=1.0f)
 
void DrawGrid (const OvMaths::FVector3 &p_viewPos, const OvMaths::FVector3 &p_color, int32_t p_gridSize=50, float p_linear=0.0f, float p_quadratic=0.0f, float p_fadeThreshold=0.0f, float p_lineWidth=1.0f)
 

Detailed Description

The ShapeDrawer handles the drawing of basic shapes

Constructor & Destructor Documentation

◆ ShapeDrawer()

OvRendering::Core::ShapeDrawer::ShapeDrawer ( OvRendering::Core::Renderer p_renderer)

Creates the ShapeDrawer instance. It needs a renderer

Parameters
p_renderer@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ ~ShapeDrawer()

OvRendering::Core::ShapeDrawer::~ShapeDrawer ( )

Destructor

Member Function Documentation

◆ DrawGrid()

void OvRendering::Core::ShapeDrawer::DrawGrid ( const OvMaths::FVector3 p_viewPos,
const OvMaths::FVector3 p_color,
int32_t  p_gridSize = 50,
float  p_linear = 0.0f,
float  p_quadratic = 0.0f,
float  p_fadeThreshold = 0.0f,
float  p_lineWidth = 1.0f 
)

Draw a grid in world space

Parameters
p_viewPos
p_color
p_gridSize
p_linear
p_quadratic
p_fadeThreshold
p_lineWidth

◆ DrawLine()

void OvRendering::Core::ShapeDrawer::DrawLine ( const OvMaths::FVector3 p_start,
const OvMaths::FVector3 p_end,
const OvMaths::FVector3 p_color,
float  p_lineWidth = 1.0f 
)

Draw a line in world space

Parameters
p_start
p_end
p_color
p_lineWidth

◆ SetViewProjection()

void OvRendering::Core::ShapeDrawer::SetViewProjection ( const OvMaths::FMatrix4 p_viewProjection)

Defines the view projection to use when drawing

Parameters
p_viewProjection

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