Falcon
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Renderable Class Reference

#include <Renderable.h>

Inheritance diagram for Renderable:
Line Mesh Particle UI::Canvas

Public Member Functions

 Renderable ()
 
virtual ~Renderable ()
 
virtual void Setup ()
 
virtual void Bind ()
 
void SetMaterial (Material *mat)
 
MaterialGetMaterial () const
 

Public Attributes

boost::container::vector< Vertex, fmemory::STLAllocator< Vertex > > m_vertexArray
 

Protected Attributes

Materialm_material = nullptr
 
VertexArraym_VAO = nullptr
 

Constructor & Destructor Documentation

◆ Renderable()

Renderable::Renderable ( )

◆ ~Renderable()

Renderable::~Renderable ( )
virtual

Member Function Documentation

◆ Bind()

void Renderable::Bind ( )
virtual

Binds the VertexArray object and the material

Reimplemented in UI::Canvas, Particle, Mesh, and Line.

◆ GetMaterial()

Material* Renderable::GetMaterial ( ) const
inline

◆ SetMaterial()

void Renderable::SetMaterial ( Material mat)
inline

◆ Setup()

void Renderable::Setup ( )
virtual

Sets up the VAO for the mesh

Reimplemented in UI::Canvas, Mesh, Particle, and Line.

Member Data Documentation

◆ m_material

Material* Renderable::m_material = nullptr
protected

◆ m_VAO

VertexArray* Renderable::m_VAO = nullptr
protected

◆ m_vertexArray

boost::container::vector<Vertex, fmemory::STLAllocator<Vertex> > Renderable::m_vertexArray

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