#include <imtl.h>

Public Member Functions |
|
| CoreExport | IllumParams (int nUserOut=0, MCHAR **pUserNames=NULL) |
| CoreExport | ~IllumParams () |
| int | nUserIllumChannels () |
| MCHAR * | GetUserIllumName (int n) |
| CoreExport int | FindUserIllumName (MCHAR *name) |
| void | SetUserIllumOutput (int n, Color &out) |
| CoreExport void | SetUserIllumOutput (MCHAR *name, Color &out) |
| Color | GetUserIllumOutput (int n) |
| CoreExport Color | GetUserIllumOutput (MCHAR *name, int n) |
| void | ClearOutputs () |
| void | ClearInputs () |
Public Attributes |
|
| Shader * | pShader |
| Mtl * | pMtl |
| Color | channels [STD2_NMAX_TEXMAPS] |
| float | finalOpac |
| float | reflectAmt |
| float | refractAmt |
| ULONG | hasComponents |
| ULONG | stdParams |
| int * | stdIDToChannel |
| Color | ambIllumOut |
| Color | diffIllumOut |
| Color | transIllumOut |
| Color | selfIllumOut |
| Color | specIllumOut |
| Color | reflIllumOut |
| int | nUserIllumOut |
| MCHAR ** | userIllumNames |
| Color * | userIllumOut |
| float | diffIllumIntens |
| float | finalAttenuation |
| Color | finalC |
| Color | finalT |
| CoreExport IllumParams | ( | int | nUserOut = 0, |
| MCHAR ** | pUserNames =
NULL |
||
| ) |
| CoreExport ~IllumParams | ( | ) |
| int nUserIllumChannels | ( | ) | [inline] |
{ return nUserIllumOut; }
| MCHAR* GetUserIllumName | ( | int | n | ) | [inline] |
{
DbgAssert( n < nUserIllumOut );
if( userIllumNames )
return userIllumNames[n];
return NULL;
}
| CoreExport int FindUserIllumName | ( | MCHAR * | name | ) |
| void SetUserIllumOutput | ( | int | n, |
| Color & | out | ||
| ) | [inline] |
{
DbgAssert( n < nUserIllumOut );
userIllumOut[n] = out;
}
| CoreExport void SetUserIllumOutput | ( | MCHAR * | name, |
| Color & | out | ||
| ) |
| Color GetUserIllumOutput | ( | int | n | ) | [inline] |
{
DbgAssert( n < nUserIllumOut );
return userIllumOut[n];
}
| CoreExport Color GetUserIllumOutput | ( | MCHAR * | name, |
| int | n | ||
| ) |
| void ClearOutputs | ( | ) | [inline] |
{
finalC = finalT = ambIllumOut=diffIllumOut=transIllumOut=selfIllumOut=
specIllumOut=reflIllumOut= Color( 0.0f, 0.0f, 0.0f );
finalAttenuation = diffIllumIntens = 0.0f;
for( int i=0; i < nUserIllumOut; ++i )
userIllumOut[i] = finalC;
}
| void ClearInputs | ( | ) | [inline] |
{
/*mtlFlags = */ stdParams = hasComponents = 0;
pShader = NULL; pMtl = NULL;
stdIDToChannel = NULL;
refractAmt = reflectAmt = 0.0f;
for( int i=0; i < STD2_NMAX_TEXMAPS; ++i )
channels[ i ] = Color( 0, 0, 0 );
}