CG-Project2
Loading...
Searching...
No Matches
ogl::VertexBuffer Class Reference
Inheritance diagram for ogl::VertexBuffer:
Collaboration diagram for ogl::VertexBuffer:

Public Member Functions

template<typename T>
void setup (const T *vertices, const size_t &size, const unsigned int &usage)
void setup (const float *vertices, const size_t &size, const unsigned int &usage)
template<typename T>
void setupSubData (const T *vertices, const size_t &size, const int &offset)
virtual void onAttach () override
virtual void onDetach () override
virtual void bind () const override
virtual void unbind () const override
Public Member Functions inherited from ogl::Buffer
unsigned int getId () const

Additional Inherited Members

Protected Attributes inherited from ogl::Buffer
unsigned int m_id = 0

Member Function Documentation

◆ bind()

void ogl::VertexBuffer::bind ( ) const
overridevirtual

Reimplemented from ogl::Buffer.

◆ onAttach()

void ogl::VertexBuffer::onAttach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ onDetach()

void ogl::VertexBuffer::onDetach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ unbind()

void ogl::VertexBuffer::unbind ( ) const
overridevirtual

Reimplemented from ogl::Buffer.


The documentation for this class was generated from the following files:
  • Opengl-Core/include/Buffer/VertexBuffer.hpp
  • Opengl-Core/src/Buffer/VertexBuffer.cpp