Untitled Game engine no.5  1.0
Public Member Functions | List of all members
Engine::GLVertexBuffer Class Reference

#include <GLBuffer.hpp>

Inheritance diagram for Engine::GLVertexBuffer:
Inheritance graph
[legend]
Collaboration diagram for Engine::GLVertexBuffer:
Collaboration graph
[legend]

Public Member Functions

 GLVertexBuffer (std::size_t size)
 
void Bind () override
 Binds this vertex buffer for drawing.
 
void Unbind () override
 Binds nothing for drawing.
 
void Load (float verts[], std::size_t size) override
 
size_t GetSize () override
 
- Public Member Functions inherited from Engine::VertexBuffer
 VertexBuffer ()
 Constructor.
 
virtual ~VertexBuffer ()
 Constructor.
 

Detailed Description

OpenGL version of a VertexBuffer

Member Function Documentation

◆ Load()

void Engine::GLVertexBuffer::Load ( float  verts[],
std::size_t  size 
)
inlineoverridevirtual

Loads vertices into this buffer

Parameters
vertsthe vertices for this buffer
sizethe size of the array we are loading

Implements Engine::VertexBuffer.


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