Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ShdLegacyW3DDefClass Class Reference

#include <shdlegacyw3d.h>

Inherits ShdDefClass.

Public Member Functions

 DECLARE_EDITABLE (ShdLegacyW3DDefClass, ShdDefClass)
 
 ShdLegacyW3DDefClass ()
 
 ShdLegacyW3DDefClass (const ShdLegacyW3DDefClass &that)
 
virtual ~ShdLegacyW3DDefClass ()
 
virtual ShdDefClassClone () const
 
virtual void Init ()
 
virtual void Shutdown ()
 
virtual ShdInterfaceClassCreate () const
 
virtual bool Is_Valid_Config (StringClass &message)
 
virtual bool Requires_Normals () const
 
virtual bool Requires_Tangent_Space_Vectors () const
 
virtual bool Requires_Sorting () const
 
virtual int Static_Sort_Index () const
 
virtual bool Uses_UV_Channel (int i) const
 
virtual bool Save (ChunkSaveClass &csave)
 Serialize this ShdDef into a chunk saver.
 
virtual bool Load (ChunkLoadClass &cload)
 Load this ShdDef from a chunk loader.
 
int Get_Pass_Count ()
 
const StringClassGet_Texture_Name (int pass, int stage)
 
int Get_Texture_Attributes (int pass, int stage)
 
const W3dShaderStructGet_Shader (int pass)
 
const W3dVertexMaterialStructGet_Material (int pass)
 
StringClassGet_Mapper_Args (int pass, int stage)
 
int Get_Map_Channel (int pass, int stage)
 
void Set_Pass_Count (int passes)
 
void Set_Texture_Name (int pass, int stage, const StringClass &name)
 
void Set_Texture_Attributes (int pass, int stage, unsigned int attributes)
 
void Set_Shader (int pass, const W3dShaderStruct &shader)
 
void Set_Material (int pass, const W3dVertexMaterialStruct &mat)
 
void Set_Mapper_Args (int pass, int stage, const char *args)
 
void Set_Map_Channel (int pass, int stage, int channel)
 
- Public Member Functions inherited from ShdDefClass
 DECLARE_EDITABLE (ShdDefClass, EditableClass)
 
 ShdDefClass (uint32 class_id)
 
 ShdDefClass (const ShdDefClass &that)
 
virtual ~ShdDefClass (void)
 
virtual void Reset (void)
 
WWINLINE uint32 Get_Class_ID (void) const
 
const char * Get_Name (void) const
 
void Set_Name (const char *new_name)
 
int Get_Surface_Type (void) const
 
void Set_Surface_Type (int t)
 
virtual bool Uses_Vertex_Alpha (void) const
 
virtual bool Uses_Vertex_Colors (void) const
 
- Public Member Functions inherited from EditableClass
virtual int Get_Parameter_Count (void) const
 
virtual ParameterClassLock_Parameter (int i)
 
virtual void Unlock_Parameter (int i)
 
- 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_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)
 

Detailed Description

ShdLegacyW3DDefClass - This ShaderDef's sole purpose for existance is to let us make the transition to using shaders for all of our materials. This shader will wrap the old material system completely. The plan is to eventually have a full set of "real" shaders and not need to use this at all.

Definition at line 34 of file shdlegacyw3d.h.

Constructor & Destructor Documentation

◆ ShdLegacyW3DDefClass() [1/2]

ShdLegacyW3DDefClass::ShdLegacyW3DDefClass ( )

Definition at line 120 of file shdlegacyw3d.cpp.

◆ ShdLegacyW3DDefClass() [2/2]

ShdLegacyW3DDefClass::ShdLegacyW3DDefClass ( const ShdLegacyW3DDefClass & that)

Definition at line 136 of file shdlegacyw3d.cpp.

◆ ~ShdLegacyW3DDefClass()

ShdLegacyW3DDefClass::~ShdLegacyW3DDefClass ( )
virtual

Definition at line 160 of file shdlegacyw3d.cpp.

Member Function Documentation

◆ Clone()

virtual ShdDefClass * ShdLegacyW3DDefClass::Clone ( void ) const
inlinevirtual

Implements ShdDefClass.

Definition at line 47 of file shdlegacyw3d.h.

◆ Create()

ShdInterfaceClass * ShdLegacyW3DDefClass::Create ( void ) const
virtual

Implements ShdDefClass.

Definition at line 374 of file shdlegacyw3d.cpp.

◆ DECLARE_EDITABLE()

ShdLegacyW3DDefClass::DECLARE_EDITABLE ( ShdLegacyW3DDefClass ,
ShdDefClass  )

◆ Get_Map_Channel()

int ShdLegacyW3DDefClass::Get_Map_Channel ( int pass,
int stage )
inline

Definition at line 75 of file shdlegacyw3d.h.

◆ Get_Mapper_Args()

StringClass & ShdLegacyW3DDefClass::Get_Mapper_Args ( int pass,
int stage )
inline

Definition at line 74 of file shdlegacyw3d.h.

◆ Get_Material()

const W3dVertexMaterialStruct & ShdLegacyW3DDefClass::Get_Material ( int pass)
inline

Definition at line 73 of file shdlegacyw3d.h.

◆ Get_Pass_Count()

int ShdLegacyW3DDefClass::Get_Pass_Count ( )
inline

Definition at line 69 of file shdlegacyw3d.h.

◆ Get_Shader()

const W3dShaderStruct & ShdLegacyW3DDefClass::Get_Shader ( int pass)
inline

Definition at line 72 of file shdlegacyw3d.h.

◆ Get_Texture_Attributes()

int ShdLegacyW3DDefClass::Get_Texture_Attributes ( int pass,
int stage )
inline

Definition at line 71 of file shdlegacyw3d.h.

◆ Get_Texture_Name()

const StringClass & ShdLegacyW3DDefClass::Get_Texture_Name ( int pass,
int stage )
inline

Definition at line 70 of file shdlegacyw3d.h.

◆ Init()

void ShdLegacyW3DDefClass::Init ( )
virtual

Implements ShdDefClass.

Definition at line 364 of file shdlegacyw3d.cpp.

◆ Is_Valid_Config()

bool ShdLegacyW3DDefClass::Is_Valid_Config ( StringClass & message)
virtual

Reimplemented from ShdDefClass.

Definition at line 164 of file shdlegacyw3d.cpp.

◆ Load()

bool ShdLegacyW3DDefClass::Load ( ChunkLoadClass & cload)
virtual

Load this ShdDef from a chunk loader.

Parameters
cload- ChunkLoad object to read from

Reimplemented from ShdDefClass.

Definition at line 219 of file shdlegacyw3d.cpp.

◆ Requires_Normals()

virtual bool ShdLegacyW3DDefClass::Requires_Normals ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 58 of file shdlegacyw3d.h.

◆ Requires_Sorting()

virtual bool ShdLegacyW3DDefClass::Requires_Sorting ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 60 of file shdlegacyw3d.h.

◆ Requires_Tangent_Space_Vectors()

virtual bool ShdLegacyW3DDefClass::Requires_Tangent_Space_Vectors ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 59 of file shdlegacyw3d.h.

◆ Save()

bool ShdLegacyW3DDefClass::Save ( ChunkSaveClass & csave)
virtual

Serialize this ShdDef into a chunk saver.

Parameters
csave- ChunkSave object to write into

Reimplemented from ShdDefClass.

Definition at line 181 of file shdlegacyw3d.cpp.

◆ Set_Map_Channel()

void ShdLegacyW3DDefClass::Set_Map_Channel ( int pass,
int stage,
int channel )
inline

Definition at line 83 of file shdlegacyw3d.h.

◆ Set_Mapper_Args()

void ShdLegacyW3DDefClass::Set_Mapper_Args ( int pass,
int stage,
const char * args )
inline

Definition at line 82 of file shdlegacyw3d.h.

◆ Set_Material()

void ShdLegacyW3DDefClass::Set_Material ( int pass,
const W3dVertexMaterialStruct & mat )
inline

Definition at line 81 of file shdlegacyw3d.h.

◆ Set_Pass_Count()

void ShdLegacyW3DDefClass::Set_Pass_Count ( int passes)
inline

Definition at line 77 of file shdlegacyw3d.h.

◆ Set_Shader()

void ShdLegacyW3DDefClass::Set_Shader ( int pass,
const W3dShaderStruct & shader )
inline

Definition at line 80 of file shdlegacyw3d.h.

◆ Set_Texture_Attributes()

void ShdLegacyW3DDefClass::Set_Texture_Attributes ( int pass,
int stage,
unsigned int attributes )
inline

Definition at line 79 of file shdlegacyw3d.h.

◆ Set_Texture_Name()

void ShdLegacyW3DDefClass::Set_Texture_Name ( int pass,
int stage,
const StringClass & name )
inline

Definition at line 78 of file shdlegacyw3d.h.

◆ Shutdown()

void ShdLegacyW3DDefClass::Shutdown ( )
virtual

Implements ShdDefClass.

Definition at line 369 of file shdlegacyw3d.cpp.

◆ Static_Sort_Index()

virtual int ShdLegacyW3DDefClass::Static_Sort_Index ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 61 of file shdlegacyw3d.h.

◆ Uses_UV_Channel()

bool ShdLegacyW3DDefClass::Uses_UV_Channel ( int i) const
virtual

Reimplemented from ShdDefClass.

Definition at line 169 of file shdlegacyw3d.cpp.


The documentation for this class was generated from the following files: