Inheritance Graph
graph BT
MeshDataStrategy
DataStrategy --> MeshDataStrategy
SimpleMeshDataStrategy --> MeshDataStrategy
click MeshDataStrategy "classRendering_1_1MeshDataStrategy"
click DataStrategy "classMinSG_1_1OutOfCore_1_1DataStrategy"
click SimpleMeshDataStrategy "classRendering_1_1SimpleMeshDataStrategy"
Description
Determines the strategy how the index and vertex data of a mesh is handled (uploaded, downloaded, deletet, …). Different simple behaviors can be realized with this class directly, other strategies (e.g. with a more sophisticated memory management) can use this class as a base.
Note: All instances of this class should be created only once and re-used (they are probably never deleted)
Note: If a mesh does not have a data-strategy, the default strategy is used.
Note: If an implementation does make use of gl-calls, be carefull if the mesh is accesed from a non-gl-thread.
Public Static Functions
Public Functions
Protected Static Functions
Documentation
function
Rendering::MeshDataStrategy::getDefaultStrategy
Returns an instance of the default strategy as singleton.
Defined in Rendering/Mesh/MeshDataStrategy.h:36
function
Rendering::MeshDataStrategy::setDefaultStrategy
Defined in Rendering/Mesh/MeshDataStrategy.h:37
function
Rendering::MeshDataStrategy::MeshDataStrategy
Defined in Rendering/Mesh/MeshDataStrategy.h:42
function
Rendering::MeshDataStrategy::~MeshDataStrategy
Defined in Rendering/Mesh/MeshDataStrategy.h:43
function
Rendering::MeshDataStrategy::assureLocalVertexData
If the Mesh has vertex data, assure that it can be accessed locally (e.g. by downloading it from graphics memory)o
Defined in Rendering/Mesh/MeshDataStrategy.h:48
function
Rendering::MeshDataStrategy::assureLocalIndexData
If the Mesh has index data, assure that it can be accessed locally (e.g. by downloading it from graphics memory)o
Defined in Rendering/Mesh/MeshDataStrategy.h:53
function
Rendering::MeshDataStrategy::prepare
Prepare the Mesh for display (VBO creation, etc.)o
Defined in Rendering/Mesh/MeshDataStrategy.h:57
function
Rendering::MeshDataStrategy::displayMesh
Display the mesh as VBO or VertexArray.o
Defined in Rendering/Mesh/MeshDataStrategy.h:61
function
Rendering::MeshDataStrategy::doDisplayMesh
(internal) Actually bind the buffers and render the mesh.
Defined in Rendering/Mesh/MeshDataStrategy.h:65