#include <material.h>
Public Member Functions | |
CTexEnv () | |
void | serial (NLMISC::IStream &f) |
void | setDefault () |
Data Fields | |
CRGBA | ConstantColor |
|
Definition at line 560 of file material.h. References setDefault().
00561 { 00562 setDefault(); 00563 } |
|
Definition at line 542 of file material.h. References ConstantColor, Env, NLMISC::IStream::serial(), and NLMISC::IStream::serialBitField8().
00543 { 00544 Env.OpRGB= f.serialBitField8(Env.OpRGB); 00545 Env.SrcArg0RGB= f.serialBitField8(Env.SrcArg0RGB); 00546 Env.OpArg0RGB= f.serialBitField8(Env.OpArg0RGB); 00547 Env.SrcArg1RGB= f.serialBitField8(Env.SrcArg1RGB); 00548 Env.OpArg1RGB= f.serialBitField8(Env.OpArg1RGB); 00549 00550 Env.OpAlpha= f.serialBitField8(Env.OpAlpha); 00551 Env.SrcArg0Alpha= f.serialBitField8(Env.SrcArg0Alpha); 00552 Env.OpArg0Alpha= f.serialBitField8(Env.OpArg0Alpha); 00553 Env.SrcArg1Alpha= f.serialBitField8(Env.SrcArg1Alpha); 00554 Env.OpArg1Alpha= f.serialBitField8(Env.OpArg1Alpha); 00555 00556 f.serial(ConstantColor); 00557 } |
|
Definition at line 522 of file material.h. References ConstantColor, Env, and NLMISC::CRGBA::set(). Referenced by CTexEnv(), and NL3D::CMaterial::serial().
00523 { 00524 // Don't worry, Visual optimize it quite well... 00525 // We cannot do better, because bit fields ordeinrg seems not to be standardized, so we can not 00526 // set Packed directly. 00527 Env.OpRGB= Modulate; 00528 Env.SrcArg0RGB= Texture; 00529 Env.OpArg0RGB= SrcColor; 00530 Env.SrcArg1RGB= Previous; 00531 Env.OpArg1RGB= SrcColor; 00532 00533 Env.OpAlpha= Modulate; 00534 Env.SrcArg0Alpha= Texture; 00535 Env.OpArg0Alpha= SrcAlpha; 00536 Env.SrcArg1Alpha= Previous; 00537 Env.OpArg1Alpha= SrcAlpha; 00538 00539 ConstantColor.set(255,255,255,255); 00540 } |
|
|
|
Definition at line 504 of file material.h. Referenced by NL3D::CDriverGL::activateTexEnvMode(), NL3D::CDriverGL::forceActivateTexEnvMode(), NL3D::CMaterial::getTexEnvMode(), and NL3D::CMaterial::setTexEnvMode(). |
|
Definition at line 513 of file material.h. |
|
Definition at line 515 of file material.h. |
|
Definition at line 509 of file material.h. |
|
Definition at line 517 of file material.h. |
|
Definition at line 511 of file material.h. |
|
Definition at line 507 of file material.h. |
|
Definition at line 514 of file material.h. |
|
Definition at line 508 of file material.h. |
|
Definition at line 516 of file material.h. |
|
Definition at line 510 of file material.h. |