BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
VBO Class Reference

#include <VBO.h>

Public Member Functions

 VBO (GLfloat *verts, int length)
 
void bind ()
 
void unbind ()
 
void cleanup ()
 

Public Attributes

GLuint id
 

Detailed Description

Vertex buffer object

Constructor & Destructor Documentation

◆ VBO()

VBO::VBO ( GLfloat * verts,
int length )

Create the VBO.

Parameters
vertsThe vertices array.
lengthThe amount of items in the vertices array.

Member Function Documentation

◆ bind()

void VBO::bind ( )

Bind the VBO buffer.

◆ cleanup()

void VBO::cleanup ( )

Delete the VBO buffer.

◆ unbind()

void VBO::unbind ( )

Unbind the VBO buffer.

Member Data Documentation

◆ id

GLuint VBO::id

The ID to store the VBO to.


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