# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CVegetableShapeBuild Class Reference

A vegetable shape. More...

#include <vegetable_shape.h>

List of all members.

Public Types

enum  TBendCenterMode { BendCenterNull = 0, BendCenterZ, BendCenterModeCount }
 Bend center controls how each vertex is bended. More...


Public Methods

 CVegetableShapeBuild ()

Public Attributes

CVertexBuffer VB
 The standard input vertexBuffer If it has vertexColor, then BendWeight is read from color.R, and scale to take MaxBendWeight at max. More...

CPrimitiveBlock PB
 only triangles of PB are used. More...

bool Lighted
 If this shape must be lighted. More...

bool PreComputeLighting
 if Lighted && PreComputeLighting, lighting is precomputed per instance. More...

bool DoubleSided
 If this shape must be 2Sided. More...

bool AlphaBlend
 If this shape must be AlphaBlended (and hence ZSorted). More...

bool BestSidedPreComputeLighting
 true If this shape must take one sided lighting. More...

float MaxBendWeight
 The maximum BendWeight to apply. More...

TBendCenterMode BendCenterMode
 The BendCenter mode. More...


Detailed Description

A vegetable shape.

Ie not deformed by instanciation.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 46 of file vegetable_shape.h.


Member Enumeration Documentation

enum NL3D::CVegetableShapeBuild::TBendCenterMode
 

Bend center controls how each vertex is bended.

BendCenterNull: For each Center of bend is made on (0,0,0). BendCenterZ: Center of bend is made on (vertx, verty, 0), perfect for "comb-like" vegetation.

Enumeration values:
BendCenterNull 
BendCenterZ 
BendCenterModeCount 

Definition at line 54 of file vegetable_shape.h.


Constructor & Destructor Documentation

NL3D::CVegetableShapeBuild::CVegetableShapeBuild   [inline]
 

Definition at line 86 of file vegetable_shape.h.

References AlphaBlend, BendCenterMode, BendCenterNull, BestSidedPreComputeLighting, DoubleSided, Lighted, MaxBendWeight, and PreComputeLighting.


Member Data Documentation

bool NL3D::CVegetableShapeBuild::AlphaBlend
 

If this shape must be AlphaBlended (and hence ZSorted).

NB: valid ONLY if (!Lighted || PreComputeLighting) && DoubleSided.

Definition at line 74 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

TBendCenterMode NL3D::CVegetableShapeBuild::BendCenterMode
 

The BendCenter mode.

Definition at line 83 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

bool NL3D::CVegetableShapeBuild::BestSidedPreComputeLighting
 

true If this shape must take one sided lighting.

ie max(normal, -normal) is computed during ligthing compute NB: valid ONLY if (PreComputeLighting)

Definition at line 79 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

bool NL3D::CVegetableShapeBuild::DoubleSided
 

If this shape must be 2Sided.

Definition at line 70 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

bool NL3D::CVegetableShapeBuild::Lighted
 

If this shape must be lighted.

Definition at line 66 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

float NL3D::CVegetableShapeBuild::MaxBendWeight
 

The maximum BendWeight to apply.

Definition at line 81 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

CPrimitiveBlock NL3D::CVegetableShapeBuild::PB
 

only triangles of PB are used.

Definition at line 64 of file vegetable_shape.h.

bool NL3D::CVegetableShapeBuild::PreComputeLighting
 

if Lighted && PreComputeLighting, lighting is precomputed per instance.

Definition at line 68 of file vegetable_shape.h.

Referenced by CVegetableShapeBuild.

CVertexBuffer NL3D::CVegetableShapeBuild::VB
 

The standard input vertexBuffer If it has vertexColor, then BendWeight is read from color.R, and scale to take MaxBendWeight at max.

else, BendWeight is read from pos.z (clamped to (0, maxZ), and scaled to take MaxBendWeight at max. If it has normal, and Lighted==true, then it is lighted. Must have TexCoord0.

Definition at line 62 of file vegetable_shape.h.


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