public

Inheritance Graph

graph BT
	SimpleMeshDataStrategy
	SimpleMeshDataStrategy --> MeshDataStrategy
	click SimpleMeshDataStrategy "classRendering_1_1SimpleMeshDataStrategy"
	click MeshDataStrategy "classRendering_1_1MeshDataStrategy"

Description

SimpleMeshDataStrategy > MeshDataStrategy

Public Static Attributes

   
   
const uint8_t USE_VBOS
   
const uint8_t PRESERVE_LOCAL_DATA
   
const uint8_t DYNAMIC_VERTICES
   
const uint8_t DEBUG_OUTPUT

Public Attributes

   
   
const uint8_t flags

Public Static Functions

   
   
SimpleMeshDataStrategy * getStaticDrawReleaseLocalStrategy()
   
SimpleMeshDataStrategy * getDebugStrategy()
   
SimpleMeshDataStrategy * getStaticDrawPreserveLocalStrategy()
   
SimpleMeshDataStrategy * getDynamicVertexStrategy()
   
SimpleMeshDataStrategy * getPureLocalStrategy()

Public Functions

   
   
bool getFlag(const uint8_t f) const
   
  SimpleMeshDataStrategy(const uint8_t flags)
   
  ~SimpleMeshDataStrategy()
   
void assureLocalVertexData( Mesh * m)
   
void assureLocalIndexData( Mesh * m)
   
void prepare( Mesh * m)
   
void displayMesh( RenderingContext & context, Mesh * m, uint32_t firstElement, uint32_t elementCount)

Documentation

variable
Rendering::SimpleMeshDataStrategy::USE_VBOS

public static
 
 
const uint8_t USE_VBOS

Defined in Rendering/Mesh/MeshDataStrategy.h:100


variable
Rendering::SimpleMeshDataStrategy::PRESERVE_LOCAL_DATA

public static
 
 
const uint8_t PRESERVE_LOCAL_DATA

Defined in Rendering/Mesh/MeshDataStrategy.h:101


variable
Rendering::SimpleMeshDataStrategy::DYNAMIC_VERTICES

public static
 
 
const uint8_t DYNAMIC_VERTICES

Defined in Rendering/Mesh/MeshDataStrategy.h:102


variable
Rendering::SimpleMeshDataStrategy::DEBUG_OUTPUT

public static
 
 
const uint8_t DEBUG_OUTPUT

Defined in Rendering/Mesh/MeshDataStrategy.h:103


variable
Rendering::SimpleMeshDataStrategy::flags

public
 
 
const uint8_t flags

Defined in Rendering/Mesh/MeshDataStrategy.h:105


function
Rendering::SimpleMeshDataStrategy::getStaticDrawReleaseLocalStrategy

public static
   
   
SimpleMeshDataStrategy * getStaticDrawReleaseLocalStrategy( )

Return an instance of the SimpleMeshDataStrategy : Create a VBO (with static usage) when first displayed and release the local memory.

Note: This is the initial default strategy.

Defined in Rendering/Mesh/MeshDataStrategy.h:79


function
Rendering::SimpleMeshDataStrategy::getDebugStrategy

public static
   
   
SimpleMeshDataStrategy * getDebugStrategy( )

Return an instance of the SimpleMeshDataStrategy : Create a VBO (with static usage) when first displayed and release the local memory.

Note: Each action results in an output message.

Defined in Rendering/Mesh/MeshDataStrategy.h:84


function
Rendering::SimpleMeshDataStrategy::getStaticDrawPreserveLocalStrategy

public static
   
   
SimpleMeshDataStrategy * getStaticDrawPreserveLocalStrategy( )

Return an instance of the SimpleMeshDataStrategy : Create a VBO (with static usage) when first displayed and to preserve a copy in local memory.

Defined in Rendering/Mesh/MeshDataStrategy.h:88


function
Rendering::SimpleMeshDataStrategy::getDynamicVertexStrategy

public static
   
   
SimpleMeshDataStrategy * getDynamicVertexStrategy( )

Return an instance of the SimpleMeshDataStrategy : Create a VBO (with dynamic usage) when first displayed and to preserve a copy in local memory.

Defined in Rendering/Mesh/MeshDataStrategy.h:92


function
Rendering::SimpleMeshDataStrategy::getPureLocalStrategy

public static
   
   
SimpleMeshDataStrategy * getPureLocalStrategy( )

Return an instance of the SimpleMeshDataStrategy : Use VertexArrays and render from local memory.

Defined in Rendering/Mesh/MeshDataStrategy.h:96


function
Rendering::SimpleMeshDataStrategy::getFlag

public const inline
     
     
bool getFlag( const uint8_t f ) const

Defined in Rendering/Mesh/MeshDataStrategy.h:106


function
Rendering::SimpleMeshDataStrategy::SimpleMeshDataStrategy

public
     
     
SimpleMeshDataStrategy( const uint8_t flags )

Defined in Rendering/Mesh/MeshDataStrategy.h:108


function
Rendering::SimpleMeshDataStrategy::~SimpleMeshDataStrategy

public virtual
   
   
~SimpleMeshDataStrategy( )

Defined in Rendering/Mesh/MeshDataStrategy.h:109


function
Rendering::SimpleMeshDataStrategy::assureLocalVertexData

public virtual
     
     
void assureLocalVertexData( Mesh * m )

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:111


function
Rendering::SimpleMeshDataStrategy::assureLocalIndexData

public virtual
     
     
void assureLocalIndexData( Mesh * m )

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:112


function
Rendering::SimpleMeshDataStrategy::prepare

public virtual
     
     
void prepare( Mesh * m )

Prepare the Mesh for display (VBO creation, etc.)o

Defined in Rendering/Mesh/MeshDataStrategy.h:113


function
Rendering::SimpleMeshDataStrategy::displayMesh

public virtual
     
     
void displayMesh( RenderingContext & context,
  Mesh * m,
  uint32_t firstElement,
  uint32_t elementCount
)    

Display the mesh as VBO or VertexArray.o

Defined in Rendering/Mesh/MeshDataStrategy.h:114