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

Creates Index Buffers. More...

#include <indexbuffer.h>

Public Member Functions

 IndexBuffer (GLushort *data, GLsizei count)
 Generate Index buffer. More...
 
 ~IndexBuffer ()
 
void bind () const
 Bind the index buffer. More...
 
void unbind () const
 Unbind the index buffer. More...
 
GLuint getCount () const
 Gets the indices count. More...
 
GLuint getBuffer () const
 Gets the index buffer gl instance. More...
 

Detailed Description

Creates Index Buffers.

Constructor & Destructor Documentation

◆ IndexBuffer()

fireworks::graphics::IndexBuffer::IndexBuffer ( GLushort *  data,
GLsizei  count 
)

Generate Index buffer.

Parameters
dataThe index data
countIndices count in the index data

◆ ~IndexBuffer()

fireworks::graphics::IndexBuffer::~IndexBuffer ( )

Member Function Documentation

◆ bind()

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

Bind the index buffer.

◆ getBuffer()

GLuint fireworks::graphics::IndexBuffer::getBuffer ( ) const
inline

Gets the index buffer gl instance.

◆ getCount()

GLuint fireworks::graphics::IndexBuffer::getCount ( ) const
inline

Gets the indices count.

◆ unbind()

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

Unbind the index buffer.


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