public

Inheritance Graph

graph BT
	LocalMeshDataHolder
	click LocalMeshDataHolder "classRendering_1_1MeshUtils_1_1LocalMeshDataHolder"

Description

Class to ensure that the data of a mesh stays in local memory.

An object of this class watches over a mesh. When an object of this class is created, it asks the mesh’s data strategy to store the mesh data in main memory (e.g. download it from graphics memory). Then, it changes the data strategy to ensure that the data is not removed later on. When the object is destroyed, it restores the original data strategy on the mesh.

Author: Benjamin Eikel

Date: 2013-03-01

Public Functions

   
   
  LocalMeshDataHolder( Mesh * meshToHold)
   
  ~LocalMeshDataHolder()
Restore the original data strategy on the associated mesh.

Documentation

function
Rendering::MeshUtils::LocalMeshDataHolder::LocalMeshDataHolder

public
     
     
LocalMeshDataHolder( Mesh * meshToHold )

Ensure that the data of a mesh is and stays in local memory.

Parameters

meshToHold
Mesh that is taken care of

Defined in Rendering/MeshUtils/LocalMeshDataHolder.h:42


function
Rendering::MeshUtils::LocalMeshDataHolder::~LocalMeshDataHolder

public
   
   
~LocalMeshDataHolder( )

Restore the original data strategy on the associated mesh.

Defined in Rendering/MeshUtils/LocalMeshDataHolder.h:45