#include <material.h>
Public Member Functions | |
CLightMap () | |
void | serial (NLMISC::IStream &f) |
void | serial2 (NLMISC::IStream &f) |
Data Fields | |
CRGBA | Color |
CRGBA | Factor |
CSmartPtr< ITexture > | Texture |
|
Definition at line 600 of file material.h. References NLMISC::CRGBA::set().
|
|
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 } |
|
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 } |
|
Definition at line 599 of file material.h. |
|
Definition at line 598 of file material.h. |
|
Definition at line 597 of file material.h. |