#include <glfx.h>
Inheritance diagram for GLFX::IIndexBuffer:

Public Member Functions | |
| virtual unsigned long | GetSize ()=0 |
| virtual GLenum | GetType ()=0 |
| virtual void * | Lock (GLenum access)=0 |
| virtual void | Unlock ()=0 |
| virtual void | Bind ()=0 |
| virtual void | Unbind ()=0 |
| virtual void | DrawElements (GLenum mode, GLsizei first, GLsizei count)=0 |
| virtual unsigned long GLFX::IIndexBuffer::GetSize | ( | ) | [pure virtual] |
Returns number of elements.
| virtual GLenum GLFX::IIndexBuffer::GetType | ( | ) | [pure virtual] |
Returns element type.
| virtual void* GLFX::IIndexBuffer::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::IIndexBuffer::Unlock | ( | ) | [pure virtual] |
Unlocks vertex buffer. Memory pointer returned by Lock() is no longer valid.
| virtual void GLFX::IIndexBuffer::Bind | ( | ) | [pure virtual] |
Binds buffer and enables drawing.
| virtual void GLFX::IIndexBuffer::Unbind | ( | ) | [pure virtual] |
Disables rendering from this vertex buffer.
| virtual void GLFX::IIndexBuffer::DrawElements | ( | GLenum | mode, | |
| GLsizei | first, | |||
| GLsizei | count | |||
| ) | [pure virtual] |
Draws elements from this buffer.
| mode | the kind of primitve to render: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON. | |
| first | first element to begin with | |
| count | number of elements to draw |