![]() |
VR-Forces 4.10 Class Documentation
|

Classes | |
| struct | _attrSet |
Public Types | |
| enum | { Smooth, Flat } |
| enum | { Front, Back, FrontAndBack } |
| enum | { None, Always, Equal, GreaterThanOrEqual, GreaterThan, LessThanOrEqual, LessThan, Never, NotEqual } |
| enum | { TR_FID, TR_SMC, TR_STP, TR_SWC } |
| Set an attribute (e.g. fid/smc) More... | |
Public Member Functions | |
| trpgMaterial (void) | |
| ~trpgMaterial (void) | |
| void | SetColor (const trpgColor &) |
| Set base material color. More... | |
| void | SetAmbient (const trpgColor &) |
| Ambient color. More... | |
| void | SetDiffuse (const trpgColor &) |
| Diffuse color (the most commonly used) More... | |
| void | SetSpecular (const trpgColor &) |
| Specular color used in lighting. More... | |
| void | SetEmission (const trpgColor &) |
| Emissive color used in lighting. More... | |
| void | SetShininess (float64) |
| Shininess used in lighting. More... | |
| void | SetShadeModel (int) |
| Shading model. More... | |
| void | SetPointSize (float64) |
| Point size. More... | |
| void | SetLineWidth (float64) |
| Line width. More... | |
| void | SetCullMode (int) |
| Cull mode. See GetCullMode. More... | |
| void | SetAlphaFunc (int) |
| Alpha Function. See GetAlphaFunc. More... | |
| void | SetAlphaRef (float64) |
| Alpha Ref value. See GetAlphaRef. More... | |
| void | SetAlpha (float64) |
| Alpha value for any polygon using this material. More... | |
| void | SetAutoNormal (bool) |
| Generate normals automatically from geometry. More... | |
| void | SetNumTexture (int) |
| void | SetTexture (int no, int id, const trpgTextureEnv &) |
| int | AddTexture (int, const trpgTextureEnv &) |
| void | SetNumTiles (int) |
| Number of tiles this material is used in. More... | |
| int | AddTile (void) |
| Adds a count to the number of tiles this material is used in and returns that number. More... | |
| void | SetIsBumpMap (bool) |
| Sets bump map status (color etc... isn't important) More... | |
| void | SetAttr (int attrCode, int val) |
| bool | GetColor (trpgColor &) const |
| Return the current color. More... | |
| bool | GetAmbient (trpgColor &) const |
| Returns the ambient color. More... | |
| bool | GetDiffuse (trpgColor &) const |
| Returns the diffuse color (the most commonly used color) More... | |
| bool | GetSpecular (trpgColor &) const |
| Specular color used for lighting. More... | |
| bool | GetEmission (trpgColor &) const |
| Emissive color used for lighting. More... | |
| bool | GetShininess (float64 &) const |
| Shininess used for lighting. More... | |
| bool | GetShadeModel (int &) const |
| The shading model can be either Smooth or Flat. More... | |
| bool | GetPointSize (float64 &) const |
| Point size. More... | |
| bool | GetLineWidth (float64 &) const |
| Line width. More... | |
| bool | GetCullMode (int &) const |
| bool | GetAlphaFunc (int &) const |
| bool | GetAlphaRef (float64 &) const |
| bool | GetAutoNormal (bool &) const |
| Whether or not to generate normals from geometry. More... | |
| bool | GetAlpha (float64 &) const |
| A single Alpha value that applies to any polygons using this material. More... | |
| bool | GetNumTile (int &) const |
| bool | GetNumTexture (int &) const |
| bool | GetTexture (int no, int &id, trpgTextureEnv &) const |
| bool | GetIsBumpMap (bool &) const |
| Return whether or not this material is a bump map. More... | |
| bool | GetAttr (int attrCode, int &val) const |
| Get an attribute (e.g. fid/smc) More... | |
| bool | isValid (void) const |
| Validity check. More... | |
| void | Reset (void) |
| Resets the contents back to empty. More... | |
| bool | Write (trpgWriteBuffer &) |
| Writes this class to a write buffer. More... | |
| bool | Read (trpgReadBuffer &) |
| Reads this class from a read buffer. More... | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. More... | |
Public Member Functions inherited from trpgReadWriteable | |
| trpgReadWriteable () | |
| const char * | getErrMess () const |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| bool | isValid (void) const |
| Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. More... | |
| virtual TeAttrHdl | GetHandle () const |
| virtual void | SetHandle (TeAttrHdl hdl) |
Protected Attributes | |
| bool | isBump |
| Note: Need to do equality operator. More... | |
| trpgColor | color |
| trpgColor | ambient |
| trpgColor | diffuse |
| trpgColor | specular |
| trpgColor | emission |
| float64 | shininess |
| int | shadeModel |
| float64 | pointSize |
| float64 | lineWidth |
| int | cullMode |
| int | alphaFunc |
| float64 | alpha |
| float64 | alphaRef |
| bool | autoNormal |
| int | numTex |
| int32 | numTile |
| struct trpgMaterial::_attrSet | attrSet |
| std::vector< int > | texids |
| std::vector< trpgTextureEnv > | texEnvs |
Protected Attributes inherited from trpgReadWriteable | |
| char | errMess [512] |
Protected Attributes inherited from trpgCheckable | |
| bool | valid |
| TeAttrHdl | handle |
| bool | writeHandle |
Friends | |
| class | trpgMatTable |
| anonymous enum |
| trpgMaterial::trpgMaterial | ( | void | ) |
| trpgMaterial::~trpgMaterial | ( | void | ) |
| void trpgMaterial::SetColor | ( | const trpgColor & | ) |
Set base material color.
| void trpgMaterial::SetAmbient | ( | const trpgColor & | ) |
Ambient color.
| void trpgMaterial::SetDiffuse | ( | const trpgColor & | ) |
Diffuse color (the most commonly used)
| void trpgMaterial::SetSpecular | ( | const trpgColor & | ) |
Specular color used in lighting.
| void trpgMaterial::SetEmission | ( | const trpgColor & | ) |
Emissive color used in lighting.
| void trpgMaterial::SetShininess | ( | float64 | ) |
Shininess used in lighting.
| void trpgMaterial::SetShadeModel | ( | int | ) |
Shading model.
| void trpgMaterial::SetPointSize | ( | float64 | ) |
Point size.
| void trpgMaterial::SetLineWidth | ( | float64 | ) |
Line width.
| void trpgMaterial::SetCullMode | ( | int | ) |
Cull mode. See GetCullMode.
| void trpgMaterial::SetAlphaFunc | ( | int | ) |
Alpha Function. See GetAlphaFunc.
| void trpgMaterial::SetAlphaRef | ( | float64 | ) |
Alpha Ref value. See GetAlphaRef.
| void trpgMaterial::SetAlpha | ( | float64 | ) |
Alpha value for any polygon using this material.
| void trpgMaterial::SetAutoNormal | ( | bool | ) |
Generate normals automatically from geometry.
| void trpgMaterial::SetNumTexture | ( | int | ) |
| void trpgMaterial::SetTexture | ( | int | no, |
| int | id, | ||
| const trpgTextureEnv & | |||
| ) |
| int trpgMaterial::AddTexture | ( | int | , |
| const trpgTextureEnv & | |||
| ) |
| void trpgMaterial::SetNumTiles | ( | int | ) |
Number of tiles this material is used in.
| int trpgMaterial::AddTile | ( | void | ) |
Adds a count to the number of tiles this material is used in and returns that number.
| void trpgMaterial::SetIsBumpMap | ( | bool | ) |
Sets bump map status (color etc... isn't important)
Returns the diffuse color (the most commonly used color)
A single Alpha value that applies to any polygons using this material.
| bool trpgMaterial::GetTexture | ( | int | no, |
| int & | id, | ||
| trpgTextureEnv & | |||
| ) | const |
Get an attribute (e.g. fid/smc)
Referenced by txp::TXPArchive::SetUserDataToMaterialAttributes().
| bool trpgMaterial::isValid | ( | void | ) | const |
Validity check.
|
virtual |
Resets the contents back to empty.
Implements trpgReadWriteable.
|
virtual |
Writes this class to a write buffer.
Implements trpgReadWriteable.
|
virtual |
Reads this class from a read buffer.
Reimplemented from trpgReadWriteable.
|
virtual |
Prints this class to a print buffer.
Reimplemented from trpgReadWriteable.
|
friend |
|
protected |
Note: Need to do equality operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |