#include <glfx.h>
Inheritance diagram for GLFX::IVertexBuffer:
Public Member Functions | |
virtual unsigned long | GetSize ()=0 |
virtual const VertexComponent * | GetFormat ()=0 |
virtual void * | Lock (GLenum access)=0 |
virtual void | Unlock ()=0 |
virtual void | Bind ()=0 |
virtual void | Unbind ()=0 |
virtual unsigned long GLFX::IVertexBuffer::GetSize | ( | ) | [pure virtual] |
Returns number of vertices.
virtual const VertexComponent* GLFX::IVertexBuffer::GetFormat | ( | ) | [pure virtual] |
Returns vertex format.
virtual void* GLFX::IVertexBuffer::Lock | ( | GLenum | access | ) | [pure virtual] |
Locks vertex buffer and returns pointer to memory.
access | access mode (GL_READ_ONLY, GL_WRITE_ONLY, or GL_READ_WRITE); 0 -- default access mode (write only) |
virtual void GLFX::IVertexBuffer::Unlock | ( | ) | [pure virtual] |
Unlocks vertex buffer. Memory pointer returned by Lock() is no longer valid.
virtual void GLFX::IVertexBuffer::Bind | ( | ) | [pure virtual] |
Enable client state and set pointers.
virtual void GLFX::IVertexBuffer::Unbind | ( | ) | [pure virtual] |
Disables rendering from this vertex buffer.