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

Public Member Functions | |
| Primitives () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual | ~Primitives () |
| void | setPrimitiveType (EPrimitiveType type) |
| EPrimitiveType | primitiveType () const |
| virtual void | render (bool use_vbo=true) const =0 |
| virtual ref< Primitives > | clone () const =0 |
| virtual void | deleteVBOs ()=0 |
| virtual void | updateVBOs (bool discard_local_data=false)=0 |
| virtual unsigned int | handle () const =0 |
| virtual size_t | indexCount () const =0 |
| virtual size_t | index (int i) const =0 |
| virtual size_t | triangleCount () const =0 |
| virtual size_t | lineCount () const =0 |
| virtual size_t | pointCount () const =0 |
| virtual void | sortTriangles () |
| Supported only by DrawElements. | |
| size_t | instances () const |
| void | setInstances (size_t instances) |
| void | setEnabled (bool enable) |
| bool | isEnabled () const |
Protected Attributes | |
| EPrimitiveType | mType |
| size_t | mInstances |
| bool | mEnabled |
| vl::Primitives::Primitives | ( | ) | [inline] |
| virtual vl::Primitives::~Primitives | ( | ) | [inline, virtual] |
| virtual const char* vl::Primitives::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Reimplemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| void vl::Primitives::setPrimitiveType | ( | EPrimitiveType | type | ) | [inline] |
Reimplemented in vl::DrawElements< index_type, Tgltype, arr_type >.
| EPrimitiveType vl::Primitives::primitiveType | ( | ) | const [inline] |
Reimplemented in vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual void vl::Primitives::render | ( | bool | use_vbo = true |
) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual ref<Primitives> vl::Primitives::clone | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual void vl::Primitives::deleteVBOs | ( | ) | [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual void vl::Primitives::updateVBOs | ( | bool | discard_local_data = false |
) | [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual unsigned int vl::Primitives::handle | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual size_t vl::Primitives::indexCount | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual size_t vl::Primitives::index | ( | int | i | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual size_t vl::Primitives::triangleCount | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual size_t vl::Primitives::lineCount | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual size_t vl::Primitives::pointCount | ( | ) | const [pure virtual] |
Implemented in vl::DrawArrays, and vl::DrawElements< index_type, Tgltype, arr_type >.
| virtual void vl::Primitives::sortTriangles | ( | ) | [inline, virtual] |
| size_t vl::Primitives::instances | ( | ) | const [inline] |
| void vl::Primitives::setInstances | ( | size_t | instances | ) | [inline] |
| void vl::Primitives::setEnabled | ( | bool | enable | ) | [inline] |
| bool vl::Primitives::isEnabled | ( | ) | const [inline] |
EPrimitiveType vl::Primitives::mType [protected] |
size_t vl::Primitives::mInstances [protected] |
bool vl::Primitives::mEnabled [protected] |