#include <matpass.h>
Inherits RefCountClass.
Inherited by W3DMaskMaterialPassClass, and W3DShroudMaterialPassClass.
Public Member Functions | |
| MaterialPassClass (void) | |
| ~MaterialPassClass (void) | |
| virtual void | Install_Materials (void) const |
| MW: Had to make this virtual so app can perform direct/custom D3D setup. | |
| virtual void | UnInstall_Materials (void) const |
| void | Set_Texture (TextureClass *Texture, int stage=0) |
| reset/cleanup D3D states | |
| void | Set_Shader (ShaderClass shader) |
| void | Set_Material (VertexMaterialClass *mat) |
| TextureClass * | Get_Texture (int stage=0) const |
| VertexMaterialClass * | Get_Material (void) const |
| TextureClass * | Peek_Texture (int stage=0) const |
| ShaderClass | Peek_Shader (void) const |
| VertexMaterialClass * | Peek_Material (void) const |
| void | Set_Cull_Volume (OBBoxClass *volume) |
| OBBoxClass * | Get_Cull_Volume (void) const |
| void | Enable_On_Translucent_Meshes (bool onoff) |
| bool | Is_Enabled_On_Translucent_Meshes (void) |
Public Member Functions inherited from RefCountClass | |
| RefCountClass (void) | |
| RefCountClass (const RefCountClass &) | |
| void | Add_Ref (void) const |
| WWINLINE void | Release_Ref (void) const |
| int | Num_Refs (void) const |
| virtual void | Delete_This (void) |
Static Public Member Functions | |
| static void | Enable_Per_Polygon_Culling (bool onoff) |
| static bool | Is_Per_Polygon_Culling_Enabled (void) |
Static Public Member Functions inherited from RefCountClass | |
| static int | Total_Refs (void) |
| static RefCountClass * | Add_Active_Ref (RefCountClass *obj) |
| static RefCountClass * | Set_Ref_Owner (RefCountClass *obj, char *file, int line) |
| static void | Remove_Active_Ref (RefCountClass *obj) |
| static bool | Validate_Active_Ref (RefCountClass *obj) |
Protected Types | |
| enum | { MAX_TEX_STAGES = 8 } |
Protected Attributes | |
| TextureClass * | Texture [MAX_TEX_STAGES] |
| ShaderClass | Shader |
| VertexMaterialClass * | Material |
| bool | EnableOnTranslucentMeshes |
| OBBoxClass * | CullVolume |
Static Protected Attributes | |
| static bool | EnablePerPolygonCulling = true |
Additional Inherited Members | |
Public Attributes inherited from RefCountClass | |
| RefCountNodeClass | ActiveRefNode |
| ActiveRefStruct | ActiveRefInfo |
Static Public Attributes inherited from RefCountClass | |
| static RefCountListClass | ActiveRefList |
Protected Member Functions inherited from RefCountClass | |
| virtual | ~RefCountClass (void) |
This class wraps all of the data needed to describe an additional material pass for any object. The motivation for this class is to implement certain types of special effects. All data needed to apply the pass should be generated procedurally. Typically a vertex processor will be used to generate any needed u-v's or vertex colors. Alternatively, we could add the option to request to re-use the model's existing u-v's or vertex colors.
| MaterialPassClass::MaterialPassClass | ( | void | ) |
Definition at line 72 of file matpass.cpp.
| MaterialPassClass::~MaterialPassClass | ( | void | ) |
Definition at line 96 of file matpass.cpp.
|
inline |
|
inlinestatic |
|
inline |
| VertexMaterialClass * MaterialPassClass::Get_Material | ( | void | ) | const |
Definition at line 228 of file matpass.cpp.
| TextureClass * MaterialPassClass::Get_Texture | ( | int | stage = 0 | ) | const |
Definition at line 203 of file matpass.cpp.
|
virtual |
MW: Had to make this virtual so app can perform direct/custom D3D setup.
Reimplemented in W3DMaskMaterialPassClass, and W3DShroudMaterialPassClass.
Definition at line 118 of file matpass.cpp.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
| void MaterialPassClass::Set_Material | ( | VertexMaterialClass * | mat | ) |
Definition at line 184 of file matpass.cpp.
| void MaterialPassClass::Set_Shader | ( | ShaderClass | shader | ) |
Definition at line 164 of file matpass.cpp.
| void MaterialPassClass::Set_Texture | ( | TextureClass * | Texture, |
| int | stage = 0 ) |
reset/cleanup D3D states
Definition at line 142 of file matpass.cpp.
|
inlinevirtual |
Reimplemented in W3DMaskMaterialPassClass, and W3DShroudMaterialPassClass.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |