NL3D::CVegetableShapeBuild Class Reference

#include <vegetable_shape.h>


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.

Public Types

enum  TBendCenterMode { BendCenterNull = 0, BendCenterZ, BendCenterModeCount }

Public Member Functions

 CVegetableShapeBuild ()

Data Fields

bool AlphaBlend
TBendCenterMode BendCenterMode
 The BendCenter mode.

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

bool Lighted
 If this shape must be lighted.

float MaxBendWeight
 The maximum BendWeight to apply.

CPrimitiveBlock PB
 only triangles of PB are used.

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

CVertexBuffer VB


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.

00087         {
00088                 Lighted= false;
00089                 DoubleSided= false;
00090                 PreComputeLighting= false;
00091                 AlphaBlend= false;
00092                 BestSidedPreComputeLighting= false;
00093                 MaxBendWeight= 0;
00094                 BendCenterMode= BendCenterNull;
00095         }


Field 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 NL3D::CVegetableShape::build(), and CVegetableShapeBuild().

TBendCenterMode NL3D::CVegetableShapeBuild::BendCenterMode
 

The BendCenter mode.

Definition at line 83 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build(), and 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 NL3D::CVegetableShape::build(), and CVegetableShapeBuild().

bool NL3D::CVegetableShapeBuild::DoubleSided
 

If this shape must be 2Sided.

Definition at line 70 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild().

bool NL3D::CVegetableShapeBuild::Lighted
 

If this shape must be lighted.

Definition at line 66 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild().

float NL3D::CVegetableShapeBuild::MaxBendWeight
 

The maximum BendWeight to apply.

Definition at line 81 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild().

CPrimitiveBlock NL3D::CVegetableShapeBuild::PB
 

only triangles of PB are used.

Definition at line 64 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build().

bool NL3D::CVegetableShapeBuild::PreComputeLighting
 

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

Definition at line 68 of file vegetable_shape.h.

Referenced by NL3D::CVegetableShape::build(), and 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.

Referenced by NL3D::CVegetableShape::build().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 08:22:30 2004 for NeL by doxygen 1.3.6