NL3D::CMaterial::CLightMap Struct Reference

#include <material.h>


Public Member Functions

 CLightMap ()
void serial (NLMISC::IStream &f)
void serial2 (NLMISC::IStream &f)

Data Fields

CRGBA Color
CRGBA Factor
CSmartPtr< ITextureTexture


Constructor & Destructor Documentation

NL3D::CMaterial::CLightMap::CLightMap  )  [inline]
 

Definition at line 600 of file material.h.

References NLMISC::CRGBA::set().

00601                 {
00602                         Factor.set(255, 255, 255, 255);
00603                         Color.set(255, 255, 255, 255);
00604                 }


Member Function Documentation

void NL3D::CMaterial::CLightMap::serial NLMISC::IStream f  ) 
 

Definition at line 438 of file material.cpp.

References NLMISC::IStream::isReading(), NLMISC::IStream::serial(), and NLMISC::IStream::serialPolyPtr().

00439 {
00440         f.serial(Factor);
00441         // Serial texture descriptor.
00442         ITexture*       text= NULL;
00443         if(f.isReading())
00444         {
00445                 f.serialPolyPtr(text);
00446                 Texture= text;
00447         }
00448         else
00449         {
00450                 text= Texture;
00451                 f.serialPolyPtr(text);
00452         }
00453 }

void NL3D::CMaterial::CLightMap::serial2 NLMISC::IStream f  ) 
 

Definition at line 456 of file material.cpp.

References NLMISC::IStream::isReading(), NLMISC::IStream::serial(), NLMISC::IStream::serialPolyPtr(), NLMISC::IStream::serialVersion(), and sint.

00457 {
00458         sint    ver= f.serialVersion(0);
00459 
00460         f.serial(Factor);
00461         f.serial(Color);
00462         // Serial texture descriptor.
00463         ITexture*       text= NULL;
00464         if(f.isReading())
00465         {
00466                 f.serialPolyPtr(text);
00467                 Texture= text;
00468         }
00469         else
00470         {
00471                 text= Texture;
00472                 f.serialPolyPtr(text);
00473         }
00474 }


Field Documentation

CRGBA NL3D::CMaterial::CLightMap::Color
 

Definition at line 599 of file material.h.

CRGBA NL3D::CMaterial::CLightMap::Factor
 

Definition at line 598 of file material.h.

CSmartPtr<ITexture> NL3D::CMaterial::CLightMap::Texture
 

Definition at line 597 of file material.h.


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 06:50:31 2004 for NeL by doxygen 1.3.6