CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

G3DTriangleMesh Struct Reference
[3D]

Structure containing all info needed by DrawTriangeMesh. More...

#include <graph3d.h>

List of all members.

Public Types

enum  { MAX_VERTEXPOOL = 2 }
enum  VertexMode { VM_WORLDSPACE, VM_VIEWSPACE }
 Types of vertices supplied. More...


Public Attributes

int num_vertices_pool
 Number of vertex sets, if > 1, morphing will be applied. More...

int num_triangles
 Number of triangles. More...

csTriangletriangles
 Pointer to array of triangles. More...

int clip_portal
 Clip to portal? One of CS_CLIP_???. More...

int clip_plane
 Clip to near plane? One of CS_CLIP_???. More...

int clip_z_plane
 Clip to z plane? One of CS_CLIP_???. More...

bool use_vertex_color
 Use precalculated vertex color? More...

bool do_fog
 Apply fogging? More...

bool do_mirror
 Consider triangle vertices in anti-clockwise order if true. More...

bool do_morph_texels
 If morphing is applied then morph texels too if true. More...

bool do_morph_colors
 If morphing is applied then morph vertex colors too if true. More...

VertexMode vertex_mode
 Type of vertices supplied. More...

uint mixmode
 DrawPolygonFX flag. More...

iVertexBufferbuffers [MAX_VERTEXPOOL]
 Vertex buffers. More...

G3DFogInfovertex_fog
 Information for fogging the vertices. More...


Detailed Description

Structure containing all info needed by DrawTriangeMesh.

This function is capable of:

To disable the use of one of the components, set it to NULL.

Definition at line 357 of file graph3d.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
MAX_VERTEXPOOL  Maximum number of vertex pool, used for vertex weighting/morphing.

Definition at line 359 of file graph3d.h.

enum G3DTriangleMesh::VertexMode
 

Types of vertices supplied.

Enumeration values:
VM_WORLDSPACE  Must apply transformation and perspective.
VM_VIEWSPACE  Must apply perspective.

Definition at line 393 of file graph3d.h.


Member Data Documentation

iVertexBuffer* G3DTriangleMesh::buffers[MAX_VERTEXPOOL]
 

Vertex buffers.

Note that all vertex buffers used here MUST have the same number of vertices.

Definition at line 411 of file graph3d.h.

int G3DTriangleMesh::clip_plane
 

Clip to near plane? One of CS_CLIP_???.

Definition at line 376 of file graph3d.h.

int G3DTriangleMesh::clip_portal
 

Clip to portal? One of CS_CLIP_???.

Definition at line 374 of file graph3d.h.

int G3DTriangleMesh::clip_z_plane
 

Clip to z plane? One of CS_CLIP_???.

Definition at line 378 of file graph3d.h.

bool G3DTriangleMesh::do_fog
 

Apply fogging?

Definition at line 384 of file graph3d.h.

bool G3DTriangleMesh::do_mirror
 

Consider triangle vertices in anti-clockwise order if true.

Definition at line 386 of file graph3d.h.

bool G3DTriangleMesh::do_morph_colors
 

If morphing is applied then morph vertex colors too if true.

Definition at line 390 of file graph3d.h.

bool G3DTriangleMesh::do_morph_texels
 

If morphing is applied then morph texels too if true.

Definition at line 388 of file graph3d.h.

uint G3DTriangleMesh::mixmode
 

DrawPolygonFX flag.

Definition at line 405 of file graph3d.h.

int G3DTriangleMesh::num_triangles
 

Number of triangles.

Definition at line 369 of file graph3d.h.

int G3DTriangleMesh::num_vertices_pool
 

Number of vertex sets, if > 1, morphing will be applied.

Definition at line 366 of file graph3d.h.

csTriangle* G3DTriangleMesh::triangles
 

Pointer to array of triangles.

Definition at line 371 of file graph3d.h.

bool G3DTriangleMesh::use_vertex_color
 

Use precalculated vertex color?

Definition at line 381 of file graph3d.h.

G3DFogInfo* G3DTriangleMesh::vertex_fog
 

Information for fogging the vertices.

Definition at line 414 of file graph3d.h.

VertexMode G3DTriangleMesh::vertex_mode
 

Type of vertices supplied.

Definition at line 402 of file graph3d.h.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14