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

Interface for a buffer of vertices. More...

#include <Buffer.hpp>

Inheritance diagram for Engine::VertexBuffer:
Inheritance graph
[legend]

Public Member Functions

 VertexBuffer ()
 Constructor.
 
virtual ~VertexBuffer ()
 Constructor.
 
virtual void Bind ()=0
 Binds this vertex buffer for drawing.
 
virtual void Unbind ()=0
 Binds nothing for drawing.
 
virtual void Load (float verts[], std::size_t size)=0
 
virtual std::size_t GetSize ()=0
 

Detailed Description

Interface for a buffer of vertices.

Member Function Documentation

◆ Load()

virtual void Engine::VertexBuffer::Load ( float  verts[],
std::size_t  size 
)
pure virtual

Loads vertices into this buffer

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

Implemented in Engine::GLVertexBuffer.


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