VISH  0.2
Public Member Functions | Public Attributes
Wizt::IndexBufferObject Struct Reference

Base class for index buffer objects. More...

#include </home/werner/origo/vish/ocean/GLvish/IndexBuffer.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Base class for index buffer objects.

Index Buffer Objects (IBO) carry indices into Vertex Arrays for primitives that are to be drawn.


Constructor & Destructor Documentation

Wizt::IndexBufferObject::~IndexBufferObject ( )

Destruct an Index Buffer.

Don't do this without an OpenGL Context!


Member Function Documentation

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.

Parameters:
modeSpecifies 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.


The documentation for this struct was generated from the following files: