#include <shdinterface.h>
Inherits RefCountClass.
Inherited by Shd6BumpDiffClass, Shd6BumpSpecClass, Shd6CubeMapClass, Shd6GlossMaskClass, Shd6LegacyW3DClass, Shd6SimpleClass, Shd7BumpDiffClass, Shd7BumpSpecClass, Shd8BumpDiffClass, and Shd8BumpSpecClass.
Public Member Functions | |
| ShdInterfaceClass (const ShdDefClass *def, int class_id) | |
| Constructor. | |
| virtual | ~ShdInterfaceClass (void) |
| Destructor. | |
| const ShdDefClass * | Peek_Definition (void) |
| returns a pointer to the definition for this shader | |
| WWINLINE int | Get_Class_ID () const |
| virtual bool | Greater_Than (const ShdInterfaceClass &s, int pass) const |
| virtual bool | Similar_Enough (const ShdInterfaceClass &s, int pass) const |
| virtual int | Get_Pass_Count (void)=0 |
| virtual bool | Pass_Selection (ShdMeshClass *, RenderInfoClass *, int) |
| virtual void | Apply_Shared (int cur_pass, RenderInfoClass &rinfo)=0 |
| virtual void | Apply_Instance (int cur_pass, RenderInfoClass &rinfo)=0 |
| virtual unsigned | Get_Vertex_Stream_Count () const =0 |
| virtual unsigned | Get_Vertex_Size (unsigned stream) const =0 |
| virtual bool | Use_HW_Vertex_Processing () const =0 |
| virtual int | Get_Texture_Count () const =0 |
| virtual TextureClass * | Peek_Texture (int idx) const =0 |
| virtual void | Copy_Vertex_Stream (unsigned stream, void *dest_buffer, const VertexStreamStruct &vss, unsigned vertex_count)=0 |
| virtual bool | Is_Opaque (void) const |
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) |
Protected Attributes | |
| const ShdDefClass * | Definition |
| int | ClassID |
Additional Inherited Members | |
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) |
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) |
ShdInterfaceClass - This class is the virtual interface for all shaders. A derived shader's job is to set up the D3D render states for a particular rendering operation. Instances of shaders are are created by an associated ShdDefClass.
Definition at line 93 of file shdinterface.h.
| ShdInterfaceClass::ShdInterfaceClass | ( | const ShdDefClass * | def, |
| int | class_id ) |
Constructor.
Base class constructor for shaders. Saves a pointer to the definition for this shader.
Definition at line 51 of file shdinterface.cpp.
|
virtual |
Destructor.
Destructor for ShdInterfaceClass, releases the definition.
Definition at line 64 of file shdinterface.cpp.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 101 of file shdinterface.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Reimplemented in Shd6LegacyW3DClass.
Definition at line 105 of file shdinterface.h.
|
inlinevirtual |
Reimplemented in Shd6LegacyW3DClass.
Definition at line 132 of file shdinterface.h.
|
inlinevirtual |
Reimplemented in Shd8BumpDiffClass, and Shd8BumpSpecClass.
Definition at line 109 of file shdinterface.h.
| const ShdDefClass * ShdInterfaceClass::Peek_Definition | ( | void | ) |
returns a pointer to the definition for this shader
Definition at line 75 of file shdinterface.cpp.
|
pure virtual |
|
inlinevirtual |
Definition at line 106 of file shdinterface.h.
|
pure virtual |
|
protected |
Definition at line 137 of file shdinterface.h.
|
protected |
Definition at line 136 of file shdinterface.h.