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

An element of the group. More...

#include <scene_group.h>

List of all members.

Public Methods

 CInstance ()
 Constructor. More...

void serial (NLMISC::IStream &f)
 Serial the instance. More...


Public Attributes

std::string Name
 Name of the Shape Instance. More...

sint32 nParent
 The parent instance (-1 if root). More...

std::vector< uint32Clusters
 The clusters the instance belongs to. More...

NLMISC::CQuat Rot
 Transformations. More...

NLMISC::CVector Pos
NLMISC::CVector Scale
std::string InstanceName
bool DontAddToScene
bool DontCastShadow
 Precomputed Lighting. More...

bool AvoidStaticLightPreCompute
bool StaticLightEnabled
uint8 SunContribution
uint8 Light [NumStaticLightPerInstance]
uint8 LocalAmbientId
 Id of the ambiant Light to take for this instance. More...


Detailed Description

An element of the group.

Definition at line 85 of file scene_group.h.


Constructor & Destructor Documentation

NL3D::CInstanceGroup::CInstance::CInstance  
 

Constructor.

Definition at line 48 of file scene_group.cpp.

References AvoidStaticLightPreCompute, DontAddToScene, DontCastShadow, LocalAmbientId, and StaticLightEnabled.


Member Function Documentation

void NL3D::CInstanceGroup::CInstance::serial NLMISC::IStream   f
 

Serial the instance.

Definition at line 58 of file scene_group.cpp.

References AvoidStaticLightPreCompute, Clusters, DontAddToScene, DontCastShadow, InstanceName, NLMISC::IStream::isReading, Light, LocalAmbientId, Name, nlassert, nParent, Pos, Rot, Scale, NLMISC::IStream::serial, NLMISC::IStream::serialCont, NLMISC::IStream::serialVersion, StaticLightEnabled, and SunContribution.


Member Data Documentation

bool NL3D::CInstanceGroup::CInstance::AvoidStaticLightPreCompute
 

Definition at line 110 of file scene_group.h.

Referenced by CInstance, and serial.

std::vector<uint32> NL3D::CInstanceGroup::CInstance::Clusters
 

The clusters the instance belongs to.

Definition at line 95 of file scene_group.h.

Referenced by serial.

bool NL3D::CInstanceGroup::CInstance::DontAddToScene
 

Definition at line 104 of file scene_group.h.

Referenced by CInstance, and serial.

bool NL3D::CInstanceGroup::CInstance::DontCastShadow
 

Precomputed Lighting.

Definition at line 108 of file scene_group.h.

Referenced by CInstance, and serial.

std::string NL3D::CInstanceGroup::CInstance::InstanceName
 

Definition at line 103 of file scene_group.h.

Referenced by serial.

uint8 NL3D::CInstanceGroup::CInstance::Light[NumStaticLightPerInstance]
 

Definition at line 115 of file scene_group.h.

Referenced by serial.

uint8 NL3D::CInstanceGroup::CInstance::LocalAmbientId
 

Id of the ambiant Light to take for this instance.

Ambient light are stored too in ig->getPointLigths() If 0xFF => take Ambient of the sun.

Definition at line 119 of file scene_group.h.

Referenced by CInstance, and serial.

std::string NL3D::CInstanceGroup::CInstance::Name
 

Name of the Shape Instance.

Definition at line 89 of file scene_group.h.

Referenced by serial.

sint32 NL3D::CInstanceGroup::CInstance::nParent
 

The parent instance (-1 if root).

Definition at line 92 of file scene_group.h.

Referenced by serial.

NLMISC::CVector NL3D::CInstanceGroup::CInstance::Pos
 

Definition at line 99 of file scene_group.h.

Referenced by serial.

NLMISC::CQuat NL3D::CInstanceGroup::CInstance::Rot
 

Transformations.

Definition at line 98 of file scene_group.h.

Referenced by serial.

NLMISC::CVector NL3D::CInstanceGroup::CInstance::Scale
 

Definition at line 100 of file scene_group.h.

Referenced by serial.

bool NL3D::CInstanceGroup::CInstance::StaticLightEnabled
 

Definition at line 112 of file scene_group.h.

Referenced by CInstance, and serial.

uint8 NL3D::CInstanceGroup::CInstance::SunContribution
 

Definition at line 113 of file scene_group.h.

Referenced by serial.


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