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

Creates Vertex Buffers. More...

#include <buffer.h>

Public Member Functions

 Buffer (GLfloat *data, GLsizei count, GLuint componentCount)
 Create and generate VertexBuffer. More...
 
 ~Buffer ()
 
void bind () const
 Bind the buffer. More...
 
void unbind () const
 Unbind the buffer. More...
 
GLuint getComponentCount () const
 Gets the types of components in the vertex data. More...
 

Detailed Description

Creates Vertex Buffers.

Constructor & Destructor Documentation

◆ Buffer()

fireworks::graphics::Buffer::Buffer ( GLfloat *  data,
GLsizei  count,
GLuint  componentCount 
)

Create and generate VertexBuffer.

Parameters
dataThe vertex data of the geometry
countThe count of the number of variants of vertex data
componentCountThe count of different variations of vertex data

◆ ~Buffer()

fireworks::graphics::Buffer::~Buffer ( )

Member Function Documentation

◆ bind()

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

Bind the buffer.

◆ getComponentCount()

GLuint fireworks::graphics::Buffer::getComponentCount ( ) const
inline

Gets the types of components in the vertex data.

◆ unbind()

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

Unbind the buffer.


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