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

#include <shdbumpdiff.h>

Inherits ShdDefClass.

Public Member Functions

 DECLARE_EDITABLE (ShdBumpDiffDefClass, ShdDefClass)
 
 ShdBumpDiffDefClass ()
 
 ShdBumpDiffDefClass (const ShdBumpDiffDefClass &that)
 
virtual ~ShdBumpDiffDefClass ()
 
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 Save (ChunkSaveClass &csave)
 Serialize this ShdDef into a chunk saver.
 
virtual bool Load (ChunkLoadClass &cload)
 Load this ShdDef from a chunk loader.
 
void Set_Texture_Name (const StringClass &name)
 
const StringClassGet_Texture_Name () const
 
void Set_Bump_Map_Name (const StringClass &name)
 
const StringClassGet_Bump_Map_Name () const
 
void Set_Ambient (const Vector3 &ambient)
 
const Vector3Get_Ambient () const
 
void Set_Diffuse (const Vector3 &diffuse)
 
const Vector3Get_Diffuse () const
 
void Set_Diffuse_Bumpiness (const Vector2 &diffuse_bumpiness)
 
const Vector2Get_Diffuse_Bumpiness () const
 
- 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_UV_Channel (int i) 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

Definition at line 44 of file shdbumpdiff.h.

Constructor & Destructor Documentation

◆ ShdBumpDiffDefClass() [1/2]

ShdBumpDiffDefClass::ShdBumpDiffDefClass ( )

Definition at line 74 of file shdbumpdiff.cpp.

◆ ShdBumpDiffDefClass() [2/2]

ShdBumpDiffDefClass::ShdBumpDiffDefClass ( const ShdBumpDiffDefClass & that)

Definition at line 90 of file shdbumpdiff.cpp.

◆ ~ShdBumpDiffDefClass()

ShdBumpDiffDefClass::~ShdBumpDiffDefClass ( )
virtual

Definition at line 100 of file shdbumpdiff.cpp.

Member Function Documentation

◆ Clone()

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

Implements ShdDefClass.

Definition at line 57 of file shdbumpdiff.h.

◆ Create()

ShdInterfaceClass * ShdBumpDiffDefClass::Create ( void ) const
virtual

Implements ShdDefClass.

Definition at line 214 of file shdbumpdiff.cpp.

◆ DECLARE_EDITABLE()

ShdBumpDiffDefClass::DECLARE_EDITABLE ( ShdBumpDiffDefClass ,
ShdDefClass  )

◆ Get_Ambient()

const Vector3 & ShdBumpDiffDefClass::Get_Ambient ( ) const
inline

Definition at line 84 of file shdbumpdiff.h.

◆ Get_Bump_Map_Name()

const StringClass & ShdBumpDiffDefClass::Get_Bump_Map_Name ( ) const
inline

Definition at line 81 of file shdbumpdiff.h.

◆ Get_Diffuse()

const Vector3 & ShdBumpDiffDefClass::Get_Diffuse ( ) const
inline

Definition at line 87 of file shdbumpdiff.h.

◆ Get_Diffuse_Bumpiness()

const Vector2 & ShdBumpDiffDefClass::Get_Diffuse_Bumpiness ( ) const
inline

Definition at line 90 of file shdbumpdiff.h.

◆ Get_Texture_Name()

const StringClass & ShdBumpDiffDefClass::Get_Texture_Name ( ) const
inline

Definition at line 78 of file shdbumpdiff.h.

◆ Init()

void ShdBumpDiffDefClass::Init ( )
virtual

Implements ShdDefClass.

Definition at line 179 of file shdbumpdiff.cpp.

◆ Is_Valid_Config()

bool ShdBumpDiffDefClass::Is_Valid_Config ( StringClass & message)
virtual

Reimplemented from ShdDefClass.

Definition at line 104 of file shdbumpdiff.cpp.

◆ Load()

bool ShdBumpDiffDefClass::Load ( ChunkLoadClass & cload)
virtual

Load this ShdDef from a chunk loader.

Parameters
cload- ChunkLoad object to read from

Reimplemented from ShdDefClass.

Definition at line 142 of file shdbumpdiff.cpp.

◆ Requires_Normals()

virtual bool ShdBumpDiffDefClass::Requires_Normals ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 68 of file shdbumpdiff.h.

◆ Requires_Sorting()

virtual bool ShdBumpDiffDefClass::Requires_Sorting ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 70 of file shdbumpdiff.h.

◆ Requires_Tangent_Space_Vectors()

virtual bool ShdBumpDiffDefClass::Requires_Tangent_Space_Vectors ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 69 of file shdbumpdiff.h.

◆ Save()

bool ShdBumpDiffDefClass::Save ( ChunkSaveClass & csave)
virtual

Serialize this ShdDef into a chunk saver.

Parameters
csave- ChunkSave object to write into

Reimplemented from ShdDefClass.

Definition at line 109 of file shdbumpdiff.cpp.

◆ Set_Ambient()

void ShdBumpDiffDefClass::Set_Ambient ( const Vector3 & ambient)
inline

Definition at line 83 of file shdbumpdiff.h.

◆ Set_Bump_Map_Name()

void ShdBumpDiffDefClass::Set_Bump_Map_Name ( const StringClass & name)
inline

Definition at line 80 of file shdbumpdiff.h.

◆ Set_Diffuse()

void ShdBumpDiffDefClass::Set_Diffuse ( const Vector3 & diffuse)
inline

Definition at line 86 of file shdbumpdiff.h.

◆ Set_Diffuse_Bumpiness()

void ShdBumpDiffDefClass::Set_Diffuse_Bumpiness ( const Vector2 & diffuse_bumpiness)
inline

Definition at line 89 of file shdbumpdiff.h.

◆ Set_Texture_Name()

void ShdBumpDiffDefClass::Set_Texture_Name ( const StringClass & name)
inline

Definition at line 77 of file shdbumpdiff.h.

◆ Shutdown()

void ShdBumpDiffDefClass::Shutdown ( )
virtual

Implements ShdDefClass.

Definition at line 204 of file shdbumpdiff.cpp.

◆ Static_Sort_Index()

virtual int ShdBumpDiffDefClass::Static_Sort_Index ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 71 of file shdbumpdiff.h.


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