VISH
0.2
|
A vertex buffer object, encompassing many vertex buffer arrays and a rendering routine with pre- and post execution code. More...
#include </home/werner/origo/vish/ocean/GLvish/VBO.hpp>
A vertex buffer object, encompassing many vertex buffer arrays and a rendering routine with pre- and post execution code.
bool Wizt::VBO::append | ( | const RefPtr< BufferArray > & | BA | ) |
Append a vertex array attribute.
It will be included during rendering. See child classes of BufferArray for details.
The number of elements in the proviced BufferArray must be identical to the NumberOfElements() of all others. If this is not the case, a BufferArray::Inconsistency exception will be thrown.
bool Wizt::VBO::call | ( | ) | const |
Call the rendering routine of this vertex buffer object.
Activates all attribute arrays and calls the renderer's draw() routine.
size_t Wizt::VBO::NumberOfElements | ( | ) | const |
Determine the number of elements that this VBO handles.
This number will be non-zero only if a BufferArray with loaded data has been appended here, and it is supposed to be consistent for all BufferArrays that live in this VBO. If not, a BufferArray::Inconsistency exception will be thrown in the append() function.