# 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::CVegetableShape Class Reference

A vegetable shape. More...

#include <vegetable_shape.h>

List of all members.

Public Methods

 CVegetableShape ()
 Constructor. More...

void build (CVegetableShapeBuild &vbuild)
 build a vegetable shape, with a standard shape. More...

void loadShape (const std::string &shape)
 load a vegetable shape (.veget), lookup into CPath, and serial. More...

void serial (NLMISC::IStream &f)
 serial. More...


Public Attributes

Shape def
bool Lighted
 Type of this shape. More...

bool DoubleSided
bool PreComputeLighting
bool AlphaBlend
bool BestSidedPreComputeLighting
CVegetableShapeBuild::TBendCenterMode BendCenterMode
CVertexBuffer VB
 VertexBuffer of this Shape, ready to be transformed and copied into vegetable manager Format is Pos/Normal/Tex0/Tex1 (no Normal if !Lighted). More...

std::vector< uint32TriangleIndices
 list of triangles index. More...

Temporary for easy Instanciation (correct size)
std::vector< uint32InstanceVertices
 For each vertex of the shape, gives the index in the VegetableManager. More...


Detailed Description

A vegetable shape.

Ie not deformed by instanciation.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 108 of file vegetable_shape.h.


Constructor & Destructor Documentation

NL3D::CVegetableShape::CVegetableShape  
 

Constructor.

Definition at line 42 of file vegetable_shape.cpp.

References AlphaBlend, BestSidedPreComputeLighting, DoubleSided, Lighted, and PreComputeLighting.


Member Function Documentation

void NL3D::CVegetableShape::build CVegetableShapeBuild   vbuild
 

build a vegetable shape, with a standard shape.

Definition at line 52 of file vegetable_shape.cpp.

References AlphaBlend, BendCenterMode, BestSidedPreComputeLighting, DoubleSided, format, InstanceVertices, Lighted, nlassert, PreComputeLighting, TriangleIndices, VB, w, and z.

void NL3D::CVegetableShape::loadShape const std::string &    shape
 

load a vegetable shape (.veget), lookup into CPath, and serial.

Definition at line 177 of file vegetable_shape.cpp.

References serial.

void NL3D::CVegetableShape::serial NLMISC::IStream   f
 

serial.

Definition at line 186 of file vegetable_shape.cpp.

References AlphaBlend, BendCenterMode, BestSidedPreComputeLighting, DoubleSided, InstanceVertices, NLMISC::IStream::isReading, Lighted, PreComputeLighting, NLMISC::IStream::serial, NLMISC::IStream::serialCheck, NLMISC::IStream::serialCont, NLMISC::IStream::serialEnum, NLMISC::IStream::serialVersion, TriangleIndices, and VB.

Referenced by loadShape.


Member Data Documentation

bool NL3D::CVegetableShape::AlphaBlend
 

Definition at line 132 of file vegetable_shape.h.

Referenced by build, CVegetableShape, and serial.

CVegetableShapeBuild::TBendCenterMode NL3D::CVegetableShape::BendCenterMode
 

Definition at line 134 of file vegetable_shape.h.

Referenced by build, and serial.

bool NL3D::CVegetableShape::BestSidedPreComputeLighting
 

Definition at line 133 of file vegetable_shape.h.

Referenced by build, CVegetableShape, and serial.

bool NL3D::CVegetableShape::DoubleSided
 

Definition at line 130 of file vegetable_shape.h.

Referenced by build, CVegetableShape, and serial.

std::vector<uint32> NL3D::CVegetableShape::InstanceVertices
 

For each vertex of the shape, gives the index in the VegetableManager.

Definition at line 147 of file vegetable_shape.h.

Referenced by build, and serial.

bool NL3D::CVegetableShape::Lighted
 

Type of this shape.

Definition at line 129 of file vegetable_shape.h.

Referenced by build, CVegetableShape, and serial.

bool NL3D::CVegetableShape::PreComputeLighting
 

Definition at line 131 of file vegetable_shape.h.

Referenced by build, CVegetableShape, and serial.

std::vector<uint32> NL3D::CVegetableShape::TriangleIndices
 

list of triangles index.

Definition at line 140 of file vegetable_shape.h.

Referenced by build, and serial.

CVertexBuffer NL3D::CVegetableShape::VB
 

VertexBuffer of this Shape, ready to be transformed and copied into vegetable manager Format is Pos/Normal/Tex0/Tex1 (no Normal if !Lighted).

where Tex1.U==BendWeigth

Definition at line 138 of file vegetable_shape.h.

Referenced by build, and serial.


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