Vivid
Loading...
Searching...
No Matches
Vivid::IndexBuffer Class Reference

Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl.com/Getting-started/Hello-Triangle Element Buffer Objects. More...

#include <IndexBuffer.h>

Public Member Functions

 IndexBuffer (Vector< unsigned int > &indices)
 
void Bind () const
 
void Unbind () const
 
unsigned int GetCount () const
 

Static Public Member Functions

static Ref< IndexBufferCreate (Vector< unsigned int > &indices)
 

Public Attributes

unsigned int m_RendererID
 
unsigned int m_Count
 

Detailed Description

Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl.com/Getting-started/Hello-Triangle Element Buffer Objects.

To create an IndexBuffer use the Create function. It takes in a Vector of unsigned integers that contains the indices and allocates the buffer to the GPU.

Definition at line 13 of file IndexBuffer.h.

Constructor & Destructor Documentation

◆ IndexBuffer()

Vivid::IndexBuffer::IndexBuffer ( Vector< unsigned int > &  indices)

Definition at line 6 of file IndexBuffer.cpp.

◆ ~IndexBuffer()

Vivid::IndexBuffer::~IndexBuffer ( )

Definition at line 15 of file IndexBuffer.cpp.

Member Function Documentation

◆ Bind()

void Vivid::IndexBuffer::Bind ( ) const

Definition at line 20 of file IndexBuffer.cpp.

◆ Create()

Ref< IndexBuffer > Vivid::IndexBuffer::Create ( Vector< unsigned int > &  indices)
static

Definition at line 30 of file IndexBuffer.cpp.

◆ GetCount()

unsigned int Vivid::IndexBuffer::GetCount ( ) const
inline

Definition at line 30 of file IndexBuffer.h.

◆ Unbind()

void Vivid::IndexBuffer::Unbind ( ) const

Definition at line 25 of file IndexBuffer.cpp.

Member Data Documentation

◆ m_Count

unsigned int Vivid::IndexBuffer::m_Count

Definition at line 17 of file IndexBuffer.h.

◆ m_RendererID

unsigned int Vivid::IndexBuffer::m_RendererID

Definition at line 16 of file IndexBuffer.h.


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