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

#include <shdbumpspec.h>

Inherits ShdDefClass.

Public Member Functions

 DECLARE_EDITABLE (ShdBumpSpecDefClass, ShdDefClass)
 
 ShdBumpSpecDefClass ()
 
 ShdBumpSpecDefClass (const ShdBumpSpecDefClass &that)
 
virtual ~ShdBumpSpecDefClass ()
 
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_Specular (const Vector3 &specular)
 
const Vector3Get_Specular () const
 
void Set_Diffuse_Bumpiness (const Vector2 &diffuse_bumpiness)
 
const Vector2Get_Diffuse_Bumpiness () const
 
void Set_Specular_Bumpiness (const Vector2 &specular_bumpiness)
 
const Vector2Get_Specular_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 43 of file shdbumpspec.h.

Constructor & Destructor Documentation

◆ ShdBumpSpecDefClass() [1/2]

ShdBumpSpecDefClass::ShdBumpSpecDefClass ( )

Definition at line 75 of file shdbumpspec.cpp.

◆ ShdBumpSpecDefClass() [2/2]

ShdBumpSpecDefClass::ShdBumpSpecDefClass ( const ShdBumpSpecDefClass & that)

Definition at line 96 of file shdbumpspec.cpp.

◆ ~ShdBumpSpecDefClass()

ShdBumpSpecDefClass::~ShdBumpSpecDefClass ( )
virtual

Definition at line 108 of file shdbumpspec.cpp.

Member Function Documentation

◆ Clone()

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

Implements ShdDefClass.

Definition at line 56 of file shdbumpspec.h.

◆ Create()

ShdInterfaceClass * ShdBumpSpecDefClass::Create ( void ) const
virtual

Implements ShdDefClass.

Definition at line 226 of file shdbumpspec.cpp.

◆ DECLARE_EDITABLE()

ShdBumpSpecDefClass::DECLARE_EDITABLE ( ShdBumpSpecDefClass ,
ShdDefClass  )

◆ Get_Ambient()

const Vector3 & ShdBumpSpecDefClass::Get_Ambient ( ) const
inline

Definition at line 83 of file shdbumpspec.h.

◆ Get_Bump_Map_Name()

const StringClass & ShdBumpSpecDefClass::Get_Bump_Map_Name ( ) const
inline

Definition at line 80 of file shdbumpspec.h.

◆ Get_Diffuse()

const Vector3 & ShdBumpSpecDefClass::Get_Diffuse ( ) const
inline

Definition at line 86 of file shdbumpspec.h.

◆ Get_Diffuse_Bumpiness()

const Vector2 & ShdBumpSpecDefClass::Get_Diffuse_Bumpiness ( ) const
inline

Definition at line 92 of file shdbumpspec.h.

◆ Get_Specular()

const Vector3 & ShdBumpSpecDefClass::Get_Specular ( ) const
inline

Definition at line 89 of file shdbumpspec.h.

◆ Get_Specular_Bumpiness()

const Vector2 & ShdBumpSpecDefClass::Get_Specular_Bumpiness ( ) const
inline

Definition at line 95 of file shdbumpspec.h.

◆ Get_Texture_Name()

const StringClass & ShdBumpSpecDefClass::Get_Texture_Name ( ) const
inline

Definition at line 77 of file shdbumpspec.h.

◆ Init()

void ShdBumpSpecDefClass::Init ( )
virtual

Implements ShdDefClass.

Definition at line 191 of file shdbumpspec.cpp.

◆ Is_Valid_Config()

bool ShdBumpSpecDefClass::Is_Valid_Config ( StringClass & message)
virtual

Reimplemented from ShdDefClass.

Definition at line 112 of file shdbumpspec.cpp.

◆ Load()

bool ShdBumpSpecDefClass::Load ( ChunkLoadClass & cload)
virtual

Load this ShdDef from a chunk loader.

Parameters
cload- ChunkLoad object to read from

Reimplemented from ShdDefClass.

Definition at line 152 of file shdbumpspec.cpp.

◆ Requires_Normals()

virtual bool ShdBumpSpecDefClass::Requires_Normals ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 67 of file shdbumpspec.h.

◆ Requires_Sorting()

virtual bool ShdBumpSpecDefClass::Requires_Sorting ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 69 of file shdbumpspec.h.

◆ Requires_Tangent_Space_Vectors()

virtual bool ShdBumpSpecDefClass::Requires_Tangent_Space_Vectors ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 68 of file shdbumpspec.h.

◆ Save()

bool ShdBumpSpecDefClass::Save ( ChunkSaveClass & csave)
virtual

Serialize this ShdDef into a chunk saver.

Parameters
csave- ChunkSave object to write into

Reimplemented from ShdDefClass.

Definition at line 117 of file shdbumpspec.cpp.

◆ Set_Ambient()

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

Definition at line 82 of file shdbumpspec.h.

◆ Set_Bump_Map_Name()

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

Definition at line 79 of file shdbumpspec.h.

◆ Set_Diffuse()

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

Definition at line 85 of file shdbumpspec.h.

◆ Set_Diffuse_Bumpiness()

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

Definition at line 91 of file shdbumpspec.h.

◆ Set_Specular()

void ShdBumpSpecDefClass::Set_Specular ( const Vector3 & specular)
inline

Definition at line 88 of file shdbumpspec.h.

◆ Set_Specular_Bumpiness()

void ShdBumpSpecDefClass::Set_Specular_Bumpiness ( const Vector2 & specular_bumpiness)
inline

Definition at line 94 of file shdbumpspec.h.

◆ Set_Texture_Name()

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

Definition at line 76 of file shdbumpspec.h.

◆ Shutdown()

void ShdBumpSpecDefClass::Shutdown ( )
virtual

Implements ShdDefClass.

Definition at line 216 of file shdbumpspec.cpp.

◆ Static_Sort_Index()

virtual int ShdBumpSpecDefClass::Static_Sort_Index ( void ) const
inlinevirtual

Reimplemented from ShdDefClass.

Definition at line 70 of file shdbumpspec.h.


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