Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvRendering::Buffers::VertexBuffer< T > Class Template Reference

#include <VertexBuffer.h>

Public Member Functions

 VertexBuffer (T *p_data, size_t p_elements)
 
 VertexBuffer (std::vector< T > &p_data)
 
 ~VertexBuffer ()
 
void Bind ()
 
void Unbind ()
 
uint32_t GetID ()
 

Detailed Description

template<class T>
class OvRendering::Buffers::VertexBuffer< T >

Wraps OpenGL VBO

Constructor & Destructor Documentation

◆ VertexBuffer() [1/2]

template<class T >
OvRendering::Buffers::VertexBuffer< T >::VertexBuffer ( T *  p_data,
size_t  p_elements 
)
inline

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

Parameters
p_data@parma p_elements

◆ VertexBuffer() [2/2]

template<class T >
OvRendering::Buffers::VertexBuffer< T >::VertexBuffer ( std::vector< T > &  p_data)
inline

Create the EBO using a vector

Parameters
p_data

◆ ~VertexBuffer()

template<class T >
OvRendering::Buffers::VertexBuffer< T >::~VertexBuffer ( )
inline

Destructor

Member Function Documentation

◆ Bind()

template<class T >
void OvRendering::Buffers::VertexBuffer< T >::Bind ( )
inline

Bind the buffer

◆ GetID()

template<class T >
uint32_t OvRendering::Buffers::VertexBuffer< T >::GetID ( )
inline

Returnd the ID of the VBO

◆ Unbind()

template<class T >
void OvRendering::Buffers::VertexBuffer< T >::Unbind ( )
inline

Bind the buffer


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