Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvRendering::Buffers::IndexBuffer Class Reference

#include <IndexBuffer.h>

Public Member Functions

 IndexBuffer (unsigned int *p_data, size_t p_elements)
 IndexBuffer (std::vector< uint32_t > &p_data)
 ~IndexBuffer ()
void Bind ()
void Unbind ()
uint32_t GetID ()

Detailed Description

Wraps OpenGL EBO

Constructor & Destructor Documentation

◆ IndexBuffer() [1/2]

OvRendering::Buffers::IndexBuffer::IndexBuffer ( unsigned int *  p_data,
size_t  p_elements 

Create the EBO using a pointer to the first element and a size (number of elements)

p_data@parma p_elements

@project: Overload

: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ IndexBuffer() [2/2]

OvRendering::Buffers::IndexBuffer::IndexBuffer ( std::vector< uint32_t > &  p_data)

Create the EBO using a vector


◆ ~IndexBuffer()

OvRendering::Buffers::IndexBuffer::~IndexBuffer ( )


Member Function Documentation

◆ Bind()

void OvRendering::Buffers::IndexBuffer::Bind ( )

Bind the buffer

◆ GetID()

uint32_t OvRendering::Buffers::IndexBuffer::GetID ( )

Returns the ID of the OpenGL EBO

◆ Unbind()

void OvRendering::Buffers::IndexBuffer::Unbind ( )

Unbind the buffer

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