Brunot
Loading...
Searching...
No Matches
VertexBuffer Class Reference

Buffer that holds data for the vertices for OpenGL. More...

#include <VertexBuffer.h>

Public Member Functions

 VertexBuffer (const float *data, unsigned int bytes)
 ~VertexBuffer ()
 VertexBuffer (const VertexBuffer &other)=default
 VertexBuffer (VertexBuffer &&other) noexcept=default
auto operator= (const VertexBuffer &other) -> VertexBuffer &=default
auto operator= (VertexBuffer &&other) noexcept -> VertexBuffer &=default
auto activate () const -> void
auto deactivate () const -> void
auto getID () const -> GLuint

Private Attributes

GLuint ID

Detailed Description

Buffer that holds data for the vertices for OpenGL.

Constructor & Destructor Documentation

◆ VertexBuffer() [1/3]

VertexBuffer::VertexBuffer ( const float * data,
unsigned int bytes )
Here is the caller graph for this function:

◆ ~VertexBuffer()

VertexBuffer::~VertexBuffer ( )

◆ VertexBuffer() [2/3]

VertexBuffer::VertexBuffer ( const VertexBuffer & other)
default
Here is the call graph for this function:

◆ VertexBuffer() [3/3]

VertexBuffer::VertexBuffer ( VertexBuffer && other)
defaultnoexcept
Here is the call graph for this function:

Member Function Documentation

◆ activate()

auto VertexBuffer::activate ( ) const->void
Here is the caller graph for this function:

◆ deactivate()

auto VertexBuffer::deactivate ( ) const->void
Here is the caller graph for this function:

◆ getID()

auto VertexBuffer::getID ( ) const->GLuint
Here is the caller graph for this function:

◆ operator=() [1/2]

auto VertexBuffer::operator= ( const VertexBuffer & other) ->VertexBuffer &=default
default
Here is the call graph for this function:

◆ operator=() [2/2]

auto VertexBuffer::operator= ( VertexBuffer && other) ->VertexBuffer &=default
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ ID

GLuint VertexBuffer::ID
private

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