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

#include <VertexArray.h>

Public Member Functions

 VertexArray ()
 
 ~VertexArray ()
 
template<class T >
void BindAttribute (uint32_t p_attribute, VertexBuffer< T > &p_vertexBuffer, EType p_type, uint64_t p_count, uint64_t p_stride, intptr_t p_offset)
 
void Bind ()
 
void Unbind ()
 
GLint GetID ()
 

Detailed Description

Wraps OpenGL VAO

Constructor & Destructor Documentation

◆ VertexArray()

OvRendering::Buffers::VertexArray::VertexArray ( )

Create the vertex array

@project: Overload

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

◆ ~VertexArray()

OvRendering::Buffers::VertexArray::~VertexArray ( )

Destroy the vertex array

Member Function Documentation

◆ Bind()

void OvRendering::Buffers::VertexArray::Bind ( )

Bind the buffer

◆ BindAttribute()

template<class T >
void OvRendering::Buffers::VertexArray::BindAttribute ( uint32_t  p_attribute,
VertexBuffer< T > &  p_vertexBuffer,
EType  p_type,
uint64_t  p_count,
uint64_t  p_stride,
intptr_t  p_offset 
)
inline

Register a VBO into the VAO

Parameters
p_attribute
p_vertexBuffer
p_type
p_count
p_stride
p_offset

◆ GetID()

GLint OvRendering::Buffers::VertexArray::GetID ( )

Return the VAO OpenGL ID

◆ Unbind()

void OvRendering::Buffers::VertexArray::Unbind ( )

Unbind the buffer


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