VISH
0.2
|
Base class for index buffer objects. More...
#include </home/werner/origo/vish/ocean/GLvish/IndexBuffer.hpp>
Base class for index buffer objects.
Index Buffer Objects (IBO) carry indices into Vertex Arrays for primitives that are to be drawn.
Wizt::IndexBufferObject::~IndexBufferObject | ( | ) |
Destruct an Index Buffer.
Don't do this without an OpenGL Context!
override bool Wizt::IndexBufferObject::disable | ( | ) | const [inline, virtual] |
Disabling function - nothing to be done, since unbinding an GL_ELEMENT_ARRAY_BUFFER will do all the job.
This is done by the deactivate() function of the base class.
Implements Wizt::BufferArray.
virtual void Wizt::IndexBufferObject::draw | ( | GLenum | mode | ) | [pure virtual] |
Virtual draw function; it is supposed to call glDrawElements().
It is implemented in class IndexBuffer.
mode | Specifies what kind of primitives to render. Symbolic constants 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 are accepted. |
Implemented in Wizt::IndexBuffer.
override bool Wizt::IndexBufferObject::enable | ( | ) | const [inline, virtual] |
Enabling function - nothing to be done, since binding an GL_ELEMENT_ARRAY_BUFFER will do all the job.
This is done by the activate() function of the base class.
Implements Wizt::BufferArray.