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

Public Member Functions | |
| GeometryLoadCallback () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| void | operator() (ResourceDatabase *db) |
| bool | discardOriginalNormals () const |
| Discards the original normals. | |
| void | setDiscardOriginalNormals (bool on) |
| Discards the original normals. | |
| bool | computeNormals () const |
| Compute normals if not present. | |
| void | setComputeNormals (bool cn) |
| Compute normals if not present. | |
| bool | removeDoubles () const |
| Remove duplicated vertices. | |
| void | setRemoveDoubles (bool rd) |
| Remove duplicated vertices. | |
| void | setSortVertices (bool on) |
| Sorts the mesh's vertices for better performances. | |
| bool | sortVertices () const |
| Sorts the mesh's vertices for better performances. | |
| void | setSortTriangles (bool on) |
| Sorts the mesh's triangles for better performances. | |
| bool | sortTriangles () const |
| Sorts the mesh's triangles for better performances. | |
| void | setStripfy (bool on) |
| Convert mesh into a set of triangle strips if possible. | |
| bool | stripfy () const |
| Convert mesh into a set of triangle strips if possible. | |
| bool | convertToDrawArrays () const |
Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true). | |
| void | setConvertToDrawArrays (bool on) |
Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true). | |
| void | setUseDisplayLists (bool on) |
| Enable display lists usage (overrides VBOs). | |
| bool | useDisplayLists () const |
| Enable display lists usage (overrides VBOs). | |
| void | setUseVBOs (bool on) |
| Enable VBO usage if display lists are disabled. | |
| bool | useVBOs () const |
| Enable VBO usage if display lists are disabled. | |
| const mat4 & | transformMatrix () const |
| void | setTransformMatrix (const mat4 &m) |
| bool | transformGeometry () const |
| Transforms the Geometries using transformMatrix(). | |
| void | setTransformGeometry (bool on) |
| Transforms the Geometries using transformMatrix(). | |
Protected Attributes | |
| mat4 | mMatrix |
| bool | mTransformGeometry |
| bool | mDiscardOriginalNormals |
| bool | mComputeNormals |
| bool | mRemoveDoubles |
| bool | mSortTriangles |
| bool | mSortVertices |
| bool | mStripfy |
| bool | mConvertToDrawArrays |
| bool | mUseDisplayLists |
| bool | mUseVBOs |
| vl::GeometryLoadCallback::GeometryLoadCallback | ( | ) | [inline] |
| virtual const char* vl::GeometryLoadCallback::className | ( | ) | [inline, virtual] |
| void vl::GeometryLoadCallback::operator() | ( | ResourceDatabase * | db | ) | [inline, virtual] |
Implements vl::LoadCallback.
| bool vl::GeometryLoadCallback::discardOriginalNormals | ( | ) | const [inline] |
Discards the original normals.
| void vl::GeometryLoadCallback::setDiscardOriginalNormals | ( | bool | on | ) | [inline] |
Discards the original normals.
| bool vl::GeometryLoadCallback::computeNormals | ( | ) | const [inline] |
Compute normals if not present.
| void vl::GeometryLoadCallback::setComputeNormals | ( | bool | cn | ) | [inline] |
Compute normals if not present.
| bool vl::GeometryLoadCallback::removeDoubles | ( | ) | const [inline] |
Remove duplicated vertices.
| void vl::GeometryLoadCallback::setRemoveDoubles | ( | bool | rd | ) | [inline] |
Remove duplicated vertices.
| void vl::GeometryLoadCallback::setSortVertices | ( | bool | on | ) | [inline] |
Sorts the mesh's vertices for better performances.
| bool vl::GeometryLoadCallback::sortVertices | ( | ) | const [inline] |
Sorts the mesh's vertices for better performances.
| void vl::GeometryLoadCallback::setSortTriangles | ( | bool | on | ) | [inline] |
Sorts the mesh's triangles for better performances.
| bool vl::GeometryLoadCallback::sortTriangles | ( | ) | const [inline] |
Sorts the mesh's triangles for better performances.
| void vl::GeometryLoadCallback::setStripfy | ( | bool | on | ) | [inline] |
Convert mesh into a set of triangle strips if possible.
| bool vl::GeometryLoadCallback::stripfy | ( | ) | const [inline] |
Convert mesh into a set of triangle strips if possible.
| bool vl::GeometryLoadCallback::convertToDrawArrays | ( | ) | const [inline] |
Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true).
| void vl::GeometryLoadCallback::setConvertToDrawArrays | ( | bool | on | ) | [inline] |
Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true).
| void vl::GeometryLoadCallback::setUseDisplayLists | ( | bool | on | ) | [inline] |
Enable display lists usage (overrides VBOs).
| bool vl::GeometryLoadCallback::useDisplayLists | ( | ) | const [inline] |
Enable display lists usage (overrides VBOs).
| void vl::GeometryLoadCallback::setUseVBOs | ( | bool | on | ) | [inline] |
Enable VBO usage if display lists are disabled.
| bool vl::GeometryLoadCallback::useVBOs | ( | ) | const [inline] |
Enable VBO usage if display lists are disabled.
| const mat4& vl::GeometryLoadCallback::transformMatrix | ( | ) | const [inline] |
| void vl::GeometryLoadCallback::setTransformMatrix | ( | const mat4 & | m | ) | [inline] |
| bool vl::GeometryLoadCallback::transformGeometry | ( | ) | const [inline] |
Transforms the Geometries using transformMatrix().
| void vl::GeometryLoadCallback::setTransformGeometry | ( | bool | on | ) | [inline] |
Transforms the Geometries using transformMatrix().
mat4 vl::GeometryLoadCallback::mMatrix [protected] |
bool vl::GeometryLoadCallback::mTransformGeometry [protected] |
bool vl::GeometryLoadCallback::mDiscardOriginalNormals [protected] |
bool vl::GeometryLoadCallback::mComputeNormals [protected] |
bool vl::GeometryLoadCallback::mRemoveDoubles [protected] |
bool vl::GeometryLoadCallback::mSortTriangles [protected] |
bool vl::GeometryLoadCallback::mSortVertices [protected] |
bool vl::GeometryLoadCallback::mStripfy [protected] |
bool vl::GeometryLoadCallback::mConvertToDrawArrays [protected] |
bool vl::GeometryLoadCallback::mUseDisplayLists [protected] |
bool vl::GeometryLoadCallback::mUseVBOs [protected] |