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

#include <shdlegacyw3d.h>

Inherits ShdInterfaceClass.

Public Member Functions

 Shd6LegacyW3DClass (const ShdDefClass *def)
 
virtual ~Shd6LegacyW3DClass ()
 
virtual bool Greater_Than (const ShdInterfaceClass &s, int pass) const
 
virtual int Get_Pass_Count ()
 
void Set_Pass_Count (int pass_count)
 
virtual int Get_Texture_Count () const
 
virtual TextureClassPeek_Texture (int idx) const
 
virtual void Apply_Shared (int cur_pass, RenderInfoClass &rinfo)
 
virtual void Apply_Instance (int cur_pass, RenderInfoClass &rinfo)
 Apply per instance states for 1 pass DX6.
 
virtual unsigned Get_Vertex_Stream_Count () const
 
virtual unsigned Get_Vertex_Size (unsigned stream) const
 
virtual bool Use_HW_Vertex_Processing () const
 
virtual void Copy_Vertex_Stream (unsigned stream, void *dest_buffer, const VertexStreamStruct &vss, unsigned vertex_count)
 
virtual bool Is_Opaque (void) const
 
VertexMaterialClassGet_Material (int pass)
 
void Set_Material (int pass, VertexMaterialClass *mat)
 
const ShaderClassGet_Shader (int pass)
 
void Set_Shader (int pass, const ShaderClass &shader)
 
void Set_Texture (int pass, int stage, TextureClass *texture)
 
void Set_FVF (unsigned fvf)
 
- Public Member Functions inherited from ShdInterfaceClass
 ShdInterfaceClass (const ShdDefClass *def, int class_id)
 Constructor.
 
virtual ~ShdInterfaceClass (void)
 Destructor.
 
const ShdDefClassPeek_Definition (void)
 returns a pointer to the definition for this shader
 
WWINLINE int Get_Class_ID () const
 
virtual bool Similar_Enough (const ShdInterfaceClass &s, int pass) const
 
virtual bool Pass_Selection (ShdMeshClass *, RenderInfoClass *, int)
 
- 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)
 

Static Public Member Functions

static void Init ()
 
static void Shutdown ()
 
- 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)
 

Protected Attributes

unsigned FVF
 
int PassCount
 
TextureClassTextures [MeshMatDescClass::MAX_PASSES][MeshMatDescClass::MAX_TEX_STAGES]
 
ShaderClass Shaders [MeshMatDescClass::MAX_PASSES]
 
VertexMaterialClassMaterials [MeshMatDescClass::MAX_PASSES]
 
- Protected Attributes inherited from ShdInterfaceClass
const ShdDefClassDefinition
 
int ClassID
 

Additional Inherited Members

- 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 108 of file shdlegacyw3d.h.

Constructor & Destructor Documentation

◆ Shd6LegacyW3DClass()

Shd6LegacyW3DClass::Shd6LegacyW3DClass ( const ShdDefClass * def)

Definition at line 379 of file shdlegacyw3d.cpp.

◆ ~Shd6LegacyW3DClass()

Shd6LegacyW3DClass::~Shd6LegacyW3DClass ( )
virtual

Definition at line 432 of file shdlegacyw3d.cpp.

Member Function Documentation

◆ Apply_Instance()

void Shd6LegacyW3DClass::Apply_Instance ( int cur_pass,
RenderInfoClass & rinfo )
virtual

Apply per instance states for 1 pass DX6.

7/10/02 5:39p KJM Created

Implements ShdInterfaceClass.

Definition at line 494 of file shdlegacyw3d.cpp.

◆ Apply_Shared()

void Shd6LegacyW3DClass::Apply_Shared ( int cur_pass,
RenderInfoClass & rinfo )
virtual

Implements ShdInterfaceClass.

Definition at line 483 of file shdlegacyw3d.cpp.

◆ Copy_Vertex_Stream()

void Shd6LegacyW3DClass::Copy_Vertex_Stream ( unsigned stream,
void * dest_buffer,
const VertexStreamStruct & vss,
unsigned vertex_count )
virtual

Implements ShdInterfaceClass.

Definition at line 525 of file shdlegacyw3d.cpp.

◆ Get_Material()

VertexMaterialClass * Shd6LegacyW3DClass::Get_Material ( int pass)
inline

Definition at line 143 of file shdlegacyw3d.h.

◆ Get_Pass_Count()

virtual int Shd6LegacyW3DClass::Get_Pass_Count ( void )
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 119 of file shdlegacyw3d.h.

◆ Get_Shader()

const ShaderClass & Shd6LegacyW3DClass::Get_Shader ( int pass)
inline

Definition at line 145 of file shdlegacyw3d.h.

◆ Get_Texture_Count()

virtual int Shd6LegacyW3DClass::Get_Texture_Count ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 122 of file shdlegacyw3d.h.

◆ Get_Vertex_Size()

unsigned Shd6LegacyW3DClass::Get_Vertex_Size ( unsigned stream) const
virtual

Implements ShdInterfaceClass.

Definition at line 519 of file shdlegacyw3d.cpp.

◆ Get_Vertex_Stream_Count()

unsigned Shd6LegacyW3DClass::Get_Vertex_Stream_Count ( ) const
virtual

Implements ShdInterfaceClass.

Definition at line 514 of file shdlegacyw3d.cpp.

◆ Greater_Than()

bool Shd6LegacyW3DClass::Greater_Than ( const ShdInterfaceClass & s,
int pass ) const
virtual

Reimplemented from ShdInterfaceClass.

Definition at line 450 of file shdlegacyw3d.cpp.

◆ Init()

void Shd6LegacyW3DClass::Init ( )
static

Definition at line 442 of file shdlegacyw3d.cpp.

◆ Is_Opaque()

virtual bool Shd6LegacyW3DClass::Is_Opaque ( void ) const
inlinevirtual

Reimplemented from ShdInterfaceClass.

Definition at line 140 of file shdlegacyw3d.h.

◆ Peek_Texture()

virtual TextureClass * Shd6LegacyW3DClass::Peek_Texture ( int idx) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 123 of file shdlegacyw3d.h.

◆ Set_FVF()

void Shd6LegacyW3DClass::Set_FVF ( unsigned fvf)
inline

Definition at line 148 of file shdlegacyw3d.h.

◆ Set_Material()

void Shd6LegacyW3DClass::Set_Material ( int pass,
VertexMaterialClass * mat )
inline

Definition at line 144 of file shdlegacyw3d.h.

◆ Set_Pass_Count()

void Shd6LegacyW3DClass::Set_Pass_Count ( int pass_count)
inline

Definition at line 120 of file shdlegacyw3d.h.

◆ Set_Shader()

void Shd6LegacyW3DClass::Set_Shader ( int pass,
const ShaderClass & shader )
inline

Definition at line 146 of file shdlegacyw3d.h.

◆ Set_Texture()

void Shd6LegacyW3DClass::Set_Texture ( int pass,
int stage,
TextureClass * texture )
inline

Definition at line 147 of file shdlegacyw3d.h.

◆ Shutdown()

void Shd6LegacyW3DClass::Shutdown ( )
static

Definition at line 446 of file shdlegacyw3d.cpp.

◆ Use_HW_Vertex_Processing()

virtual bool Shd6LegacyW3DClass::Use_HW_Vertex_Processing ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 130 of file shdlegacyw3d.h.

Member Data Documentation

◆ FVF

unsigned Shd6LegacyW3DClass::FVF
protected

Definition at line 152 of file shdlegacyw3d.h.

◆ Materials

VertexMaterialClass* Shd6LegacyW3DClass::Materials[MeshMatDescClass::MAX_PASSES]
protected

Definition at line 156 of file shdlegacyw3d.h.

◆ PassCount

int Shd6LegacyW3DClass::PassCount
protected

Definition at line 153 of file shdlegacyw3d.h.

◆ Shaders

ShaderClass Shd6LegacyW3DClass::Shaders[MeshMatDescClass::MAX_PASSES]
protected

Definition at line 155 of file shdlegacyw3d.h.

◆ Textures

Definition at line 154 of file shdlegacyw3d.h.


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