CrystalSpace

Public API Reference

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

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.

int num_triangles
 Number of triangles.

csTriangletriangles
 Pointer to array of triangles.

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

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

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

bool use_vertex_color
 Use precalculated vertex color?

bool do_fog
 Apply fogging?

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

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

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

VertexMode vertex_mode
 Type of vertices supplied.

uint mixmode
 DrawPolygonFX flag.

iVertexBufferbuffers [MAX_VERTEXPOOL]
 Vertex buffers.

G3DFogInfovertex_fog
 Information for fogging the vertices.


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 0.

Definition at line 543 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 545 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 579 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 597 of file graph3d.h.

int G3DTriangleMesh::clip_plane
 

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

Definition at line 562 of file graph3d.h.

int G3DTriangleMesh::clip_portal
 

Clip to portal? One of CS_CLIP_???.

Definition at line 560 of file graph3d.h.

int G3DTriangleMesh::clip_z_plane
 

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

Definition at line 564 of file graph3d.h.

bool G3DTriangleMesh::do_fog
 

Apply fogging?

Definition at line 570 of file graph3d.h.

bool G3DTriangleMesh::do_mirror
 

Consider triangle vertices in anti-clockwise order if true.

Definition at line 572 of file graph3d.h.

bool G3DTriangleMesh::do_morph_colors
 

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

Definition at line 576 of file graph3d.h.

bool G3DTriangleMesh::do_morph_texels
 

If morphing is applied then morph texels too if true.

Definition at line 574 of file graph3d.h.

uint G3DTriangleMesh::mixmode
 

DrawPolygonFX flag.

Definition at line 591 of file graph3d.h.

int G3DTriangleMesh::num_triangles
 

Number of triangles.

Definition at line 555 of file graph3d.h.

int G3DTriangleMesh::num_vertices_pool
 

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

Definition at line 552 of file graph3d.h.

csTriangle* G3DTriangleMesh::triangles
 

Pointer to array of triangles.

Definition at line 557 of file graph3d.h.

bool G3DTriangleMesh::use_vertex_color
 

Use precalculated vertex color?

Definition at line 567 of file graph3d.h.

G3DFogInfo* G3DTriangleMesh::vertex_fog
 

Information for fogging the vertices.

Definition at line 600 of file graph3d.h.

VertexMode G3DTriangleMesh::vertex_mode
 

Type of vertices supplied.

Definition at line 588 of file graph3d.h.


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