Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::graphics::VertexArray Class Reference

Creates Vertex Array Object (VAOs). More...

#include <vertexarray.h>

Public Member Functions

 VertexArray ()
 Generates VAO. More...
 
 ~VertexArray ()
 
void addBuffer (Buffer *buffer, GLuint index)
 Adds the the vertex buffer (VBO) to the VAO. More...
 
void bind () const
 Binds the vertex array. More...
 
void unbind () const
 Unbind the vertex array. More...
 

Detailed Description

Creates Vertex Array Object (VAOs).

Constructor & Destructor Documentation

◆ VertexArray()

fireworks::graphics::VertexArray::VertexArray ( )

Generates VAO.

◆ ~VertexArray()

fireworks::graphics::VertexArray::~VertexArray ( )

Member Function Documentation

◆ addBuffer()

void fireworks::graphics::VertexArray::addBuffer ( Buffer buffer,
GLuint  index 
)

Adds the the vertex buffer (VBO) to the VAO.

Parameters
bufferThe vertex buffer containing the vertex data of the geometry
indexTo which Attribute the corresponding buffers corresponds to

◆ bind()

void fireworks::graphics::VertexArray::bind ( ) const

Binds the vertex array.

◆ unbind()

void fireworks::graphics::VertexArray::unbind ( ) const

Unbind the vertex array.


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