CrystalSpace

Public API Reference

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

csSimpleRenderMesh Struct Reference
[3D]

A simple render mesh. More...

#include <graph3d.h>

List of all members.

Public Attributes

csRenderMeshType meshtype
 Type of the geometry to draw.

uint indexCount
 Number of vertex indices.

uintindices
 Vertex indices.

uint vertexCount
 Number of vertices.

csVector3vertices
 Vertices.

csVector2texcoords
 Texture coordinates.

csVector4colors
 (Optional) Colors.

iTextureHandletexture
 (Optional) Handle to the texture to select.

iShadershader
 (Optional) Shader to use.

iShaderVariableContextdynDomain
 (Optional) Shader variable context.

csAlphaMode alphaType
 (Optional) Alpha mode. Defaults to "autodetect".

csZBufMode z_buf_mode
 (Optional) Z buffer mode. Defaults to CS_ZBUF_NONE.

uint mixmode
 (Optional) Mix mode. Defaults to CS_FX_COPY.


Detailed Description

A simple render mesh.

Definition at line 631 of file graph3d.h.


Member Data Documentation

csAlphaMode csSimpleRenderMesh::alphaType
 

(Optional) Alpha mode. Defaults to "autodetect".

Definition at line 668 of file graph3d.h.

csVector4* csSimpleRenderMesh::colors
 

(Optional) Colors.

Leaving this 0 has the same effect as having all vertex colors set to white.

Definition at line 656 of file graph3d.h.

iShaderVariableContext* csSimpleRenderMesh::dynDomain
 

(Optional) Shader variable context.

Definition at line 666 of file graph3d.h.

uint csSimpleRenderMesh::indexCount
 

Number of vertex indices.

Definition at line 637 of file graph3d.h.

uint* csSimpleRenderMesh::indices
 

Vertex indices.

Definition at line 639 of file graph3d.h.

csRenderMeshType csSimpleRenderMesh::meshtype
 

Type of the geometry to draw.

Definition at line 634 of file graph3d.h.

uint csSimpleRenderMesh::mixmode
 

(Optional) Mix mode. Defaults to CS_FX_COPY.

Definition at line 672 of file graph3d.h.

iShader* csSimpleRenderMesh::shader
 

(Optional) Shader to use.

Definition at line 664 of file graph3d.h.

csVector2* csSimpleRenderMesh::texcoords
 

Texture coordinates.

Definition at line 650 of file graph3d.h.

iTextureHandle* csSimpleRenderMesh::texture
 

(Optional) Handle to the texture to select.

Leaving this 0 has the same effect as using a white texture.

Definition at line 661 of file graph3d.h.

uint csSimpleRenderMesh::vertexCount
 

Number of vertices.

Definition at line 642 of file graph3d.h.

csVector3* csSimpleRenderMesh::vertices
 

Vertices.

Note: you can omit vertices or texcoords, however this will likely only give useable results if you provide a shader and shader var context (and transfer vertices and/or texcoords with SVs.)

Definition at line 648 of file graph3d.h.

csZBufMode csSimpleRenderMesh::z_buf_mode
 

(Optional) Z buffer mode. Defaults to CS_ZBUF_NONE.

Definition at line 670 of file graph3d.h.


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