CrystalSpace

Public API Reference

CS::Graphics::CoreRenderMesh Struct Reference

Data required by the renderer to draw a mesh. More...

#include <ivideo/rendermesh.h>

Inheritance diagram for CS::Graphics::CoreRenderMesh:

List of all members.

Public Attributes

csBox3 bbox
 Render mesh bounding box, object space.
int clip_plane
 Clipping parameter.
int clip_portal
 Clipping parameter.
int clip_z_plane
 Clipping parameter.
const char * db_mesh_name
 To make debugging easier we add the name of the mesh object here in debug mode.
bool do_mirror
 Mirror mode - whether the mesh should be mirrored.
iMaterialWrappermaterial
 Material used for this mesh.
csRenderMeshType meshtype
 Mesh type.
RenderMeshIndexRangemultiRanges
 Index ranges to render.
csReversibleTransform object2world
 Transform object space -> world space.
size_t rangesNum
 Number of index ranges in multiRanges.



unsigned int indexend
 Start and end of the range of indices to use.
unsigned int indexstart
 Start and end of the range of indices to use.

Detailed Description

Data required by the renderer to draw a mesh.

Definition at line 272 of file rendermesh.h.


Member Data Documentation

Render mesh bounding box, object space.

Definition at line 349 of file rendermesh.h.

Clipping parameter.

Definition at line 292 of file rendermesh.h.

Clipping parameter.

Definition at line 289 of file rendermesh.h.

Clipping parameter.

Definition at line 295 of file rendermesh.h.

To make debugging easier we add the name of the mesh object here in debug mode.

Definition at line 278 of file rendermesh.h.

Mirror mode - whether the mesh should be mirrored.

Essentially toggles between back- and front-face culling. It should be set to true if object2camera contains a negative scaling. Basically, in almost any case it should be set to the camera's mirror mode.

 iCamera* camera;
 csRenderMesh myMesh;
   ...
 myMesh.object2camera = camera->GetTransform () / 
   movable->GetFullTransform ();
 myMesh.do_mirror = camera->IsMirrored ();

Definition at line 314 of file rendermesh.h.

Start and end of the range of indices to use.

The indices are used in the range from indexstart (inclusive) to indexend (exclusive): indexstart <= n < indexend

Definition at line 333 of file rendermesh.h.

Start and end of the range of indices to use.

The indices are used in the range from indexstart (inclusive) to indexend (exclusive): indexstart <= n < indexend

Definition at line 332 of file rendermesh.h.

Material used for this mesh.

Used for e.g. sorting by material.

Definition at line 340 of file rendermesh.h.

Index ranges to render.

If ranges are specified they have precedence over indexstart and indexend.

Definition at line 322 of file rendermesh.h.

Transform object space -> world space.

Remarks:
'this' space is object space, 'other' space is world space

Definition at line 346 of file rendermesh.h.

Number of index ranges in multiRanges.

Definition at line 324 of file rendermesh.h.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1