Falcon
Public Member Functions | List of all members
Line Class Reference

#include <Line.h>

Inheritance diagram for Line:
Renderable

Public Member Functions

 Line ()
 
virtual ~Line ()
 
void Setup () override
 
void Bind () override
 
void AddPoint (const glm::vec3 &point)
 
void ClearPoints ()
 
void SetLineType (LineType type)
 
LineType GetLineType ()
 
void SetColor (glm::vec3 color)
 
glm::vec3 GetColor () const
 
u32 GetPointAmount ()
 
- Public Member Functions inherited from Renderable
 Renderable ()
 
virtual ~Renderable ()
 
void SetMaterial (Material *mat)
 
MaterialGetMaterial () const
 

Additional Inherited Members

- Public Attributes inherited from Renderable
boost::container::vector< Vertex, fmemory::STLAllocator< Vertex > > m_vertexArray
 
- Protected Attributes inherited from Renderable
Materialm_material = nullptr
 
VertexArraym_VAO = nullptr
 

Detailed Description

Stores data for lines

Constructor & Destructor Documentation

◆ Line()

Line::Line ( )

Basic line constructor

◆ ~Line()

Line::~Line ( )
virtual

Line destructor

Member Function Documentation

◆ AddPoint()

void Line::AddPoint ( const glm::vec3 &  point)
inline

◆ Bind()

void Line::Bind ( )
overridevirtual

Binds the VertexArray object held by the mesh along with the relevant vertex and index buffer.

Reimplemented from Renderable.

◆ ClearPoints()

void Line::ClearPoints ( )
inline

◆ GetColor()

glm::vec3 Line::GetColor ( ) const
inline

◆ GetLineType()

LineType Line::GetLineType ( )
inline

◆ GetPointAmount()

u32 Line::GetPointAmount ( )
inline

◆ SetColor()

void Line::SetColor ( glm::vec3  color)
inline

◆ SetLineType()

void Line::SetLineType ( LineType  type)
inline

◆ Setup()

void Line::Setup ( )
overridevirtual

Sets up the vao

Reimplemented from Renderable.


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