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

Public Member Functions

template<typename T>
void setup (const T *indices, const size_t &size, const unsigned int &usage) const
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::ElementBuffer::bind ( ) const
overridevirtual

Reimplemented from ogl::Buffer.

◆ onAttach()

void ogl::ElementBuffer::onAttach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ onDetach()

void ogl::ElementBuffer::onDetach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ unbind()

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

Reimplemented from ogl::Buffer.


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