Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <DrawElements.hpp>

Classes | |
| class | Triangle |
Public Member Functions | |
| DrawElements (EPrimitiveType primitive=PT_TRIANGLES, int instances=1) | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual ref< Primitives > | clone () const |
| virtual unsigned int | handle () const |
| void | setPrimitiveType (EPrimitiveType type) |
| EPrimitiveType | primitiveType () const |
| virtual size_t | indexCount () const |
| virtual size_t | indexCountGPU () const |
| virtual size_t | index (int i) const |
| arr_type * | indices () |
| const arr_type * | indices () const |
| virtual void | updateVBOs (bool discard_local_data=false) |
| virtual void | deleteVBOs () |
| virtual void | clearLocalBuffer () |
| size_t | triangleCount () const |
| size_t | lineCount () const |
| size_t | pointCount () const |
| virtual void | sortTriangles () |
| Supported only by DrawElements. | |
| virtual void | render (bool use_vbo) const |
Protected Attributes | |
| ref< arr_type > | mIndexBuffer |
DrawElements is the template base of vl::DrawElementsUInt, vl::DrawElementsUShort, vl::DrawElementsUByte. DrawArrays and DrawElements are used by Geometry to define a set of primitives to be rendered (Geometry::primitives()). DrawArrays and DrawElements supports all the OpenGL primitive types. Geometry multi instancing is also supported, see the functions setInstances() and instances(). The indices of a DrawElement are stored in a GLBufferObject and thus can be stored locally or on the GPU. To gain direct access to the GLBufferObject use the indices() function.
| vl::DrawElements< index_type, Tgltype, arr_type >::DrawElements | ( | EPrimitiveType | primitive = PT_TRIANGLES, |
|
| int | instances = 1 | |||
| ) | [inline] |
| virtual const char* vl::DrawElements< index_type, Tgltype, arr_type >::className | ( | ) | [inline, virtual] |
| virtual ref<Primitives> vl::DrawElements< index_type, Tgltype, arr_type >::clone | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| virtual unsigned int vl::DrawElements< index_type, Tgltype, arr_type >::handle | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| void vl::DrawElements< index_type, Tgltype, arr_type >::setPrimitiveType | ( | EPrimitiveType | type | ) | [inline] |
Reimplemented from vl::Primitives.
| EPrimitiveType vl::DrawElements< index_type, Tgltype, arr_type >::primitiveType | ( | ) | const [inline] |
Reimplemented from vl::Primitives.
| virtual size_t vl::DrawElements< index_type, Tgltype, arr_type >::indexCount | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| virtual size_t vl::DrawElements< index_type, Tgltype, arr_type >::indexCountGPU | ( | ) | const [inline, virtual] |
| virtual size_t vl::DrawElements< index_type, Tgltype, arr_type >::index | ( | int | i | ) | const [inline, virtual] |
Implements vl::Primitives.
| arr_type* vl::DrawElements< index_type, Tgltype, arr_type >::indices | ( | ) | [inline] |
| const arr_type* vl::DrawElements< index_type, Tgltype, arr_type >::indices | ( | ) | const [inline] |
| virtual void vl::DrawElements< index_type, Tgltype, arr_type >::updateVBOs | ( | bool | discard_local_data = false |
) | [inline, virtual] |
Implements vl::Primitives.
| virtual void vl::DrawElements< index_type, Tgltype, arr_type >::deleteVBOs | ( | ) | [inline, virtual] |
Implements vl::Primitives.
| virtual void vl::DrawElements< index_type, Tgltype, arr_type >::clearLocalBuffer | ( | ) | [inline, virtual] |
| size_t vl::DrawElements< index_type, Tgltype, arr_type >::triangleCount | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| size_t vl::DrawElements< index_type, Tgltype, arr_type >::lineCount | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| size_t vl::DrawElements< index_type, Tgltype, arr_type >::pointCount | ( | ) | const [inline, virtual] |
Implements vl::Primitives.
| virtual void vl::DrawElements< index_type, Tgltype, arr_type >::sortTriangles | ( | ) | [inline, virtual] |
| virtual void vl::DrawElements< index_type, Tgltype, arr_type >::render | ( | bool | use_vbo | ) | const [inline, virtual] |
Implements vl::Primitives.
ref< arr_type > vl::DrawElements< index_type, Tgltype, arr_type >::mIndexBuffer [protected] |