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

#include <shddefmanager.h>

Static Public Member Functions

static ShdDefFactoryClassFind_Factory (uint32 class_id)
 Used to look up the ShdDefFactory for a given class id.
 
static ShdDefFactoryClassFind_Factory (const char *name)
 Used to look up the ShdDefFactory for a given named shader def.
 
static void Register_Factory (ShdDefFactoryClass *factory)
 Registers a factory with the system.
 
static void Unregister_Factory (ShdDefFactoryClass *factory)
 removes a factory from the system
 
static ShdDefFactoryClassGet_First (uint32 superclass_id)
 
static ShdDefFactoryClassGet_Next (ShdDefFactoryClass *current, uint32 superclass_id)
 
static ShdDefFactoryClassGet_First (void)
 
static ShdDefFactoryClassGet_Next (ShdDefFactoryClass *current)
 
static ShdDefClassCreate_ShdDefClass_Instance (uint32 class_id)
 
static void Save_Shader (ChunkSaveClass &csave, ShdDefClass *shddef)
 
static void Load_Shader (ChunkLoadClass &cload, ShdDefClass **shddef)
 

Detailed Description

ShdDefManagerClass - This class contains a list of all constructed ShdDefFactories.
This class is used to iterate through the shader definition factories in the material editor for example.

Definition at line 57 of file shddefmanager.h.

Member Function Documentation

◆ Create_ShdDefClass_Instance()

ShdDefClass * ShdDefManagerClass::Create_ShdDefClass_Instance ( uint32 class_id)
static

Definition at line 208 of file shddefmanager.cpp.

◆ Find_Factory() [1/2]

ShdDefFactoryClass * ShdDefManagerClass::Find_Factory ( const char * name)
static

Used to look up the ShdDefFactory for a given named shader def.

Parameters
name- name of the desired shader def
Returns
the factory if it is found or NULL if not

Definition at line 92 of file shddefmanager.cpp.

◆ Find_Factory() [2/2]

ShdDefFactoryClass * ShdDefManagerClass::Find_Factory ( uint32 class_id)
static

Used to look up the ShdDefFactory for a given class id.

Parameters
class_id- class id to look up the factory for
Returns
the factory if it is found or NULL

Definition at line 62 of file shddefmanager.cpp.

◆ Get_First() [1/2]

static ShdDefFactoryClass * ShdDefManagerClass::Get_First ( uint32 superclass_id)
static

◆ Get_First() [2/2]

ShdDefFactoryClass * ShdDefManagerClass::Get_First ( void )
static

Definition at line 142 of file shddefmanager.cpp.

◆ Get_Next() [1/2]

ShdDefFactoryClass * ShdDefManagerClass::Get_Next ( ShdDefFactoryClass * current)
static

Definition at line 147 of file shddefmanager.cpp.

◆ Get_Next() [2/2]

static ShdDefFactoryClass * ShdDefManagerClass::Get_Next ( ShdDefFactoryClass * current,
uint32 superclass_id )
static

◆ Load_Shader()

void ShdDefManagerClass::Load_Shader ( ChunkLoadClass & cload,
ShdDefClass ** shddef )
static

Definition at line 236 of file shddefmanager.cpp.

◆ Register_Factory()

void ShdDefManagerClass::Register_Factory ( ShdDefFactoryClass * factory)
static

Registers a factory with the system.

Parameters
factory- the factory to register

Definition at line 121 of file shddefmanager.cpp.

◆ Save_Shader()

void ShdDefManagerClass::Save_Shader ( ChunkSaveClass & csave,
ShdDefClass * shddef )
static

Definition at line 223 of file shddefmanager.cpp.

◆ Unregister_Factory()

void ShdDefManagerClass::Unregister_Factory ( ShdDefFactoryClass * factory)
static

removes a factory from the system

Parameters
factory- the factory to unregister

Definition at line 134 of file shddefmanager.cpp.


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