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

#include <shdsimple.h>

Inherits ShdInterfaceClass.

Public Member Functions

 Shd6SimpleClass (const ShdDefClass *def)
 
virtual ~Shd6SimpleClass ()
 
virtual int Get_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)
 
- 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 Greater_Than (const ShdInterfaceClass &s, int pass) const
 
virtual bool Similar_Enough (const ShdInterfaceClass &s, int pass) const
 
virtual bool Pass_Selection (ShdMeshClass *, RenderInfoClass *, int)
 
virtual bool Is_Opaque (void) const
 
- 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

D3DMATERIAL8 * Material
 
TextureClassTexture
 
Vector4 Ambient
 
Vector4 Diffuse
 
- Protected Attributes inherited from ShdInterfaceClass
const ShdDefClassDefinition
 
int ClassID
 

Static Protected Attributes

static Matrix4x4 View_Projection_Matrix
 

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 104 of file shdsimple.h.

Constructor & Destructor Documentation

◆ Shd6SimpleClass()

Shd6SimpleClass::Shd6SimpleClass ( const ShdDefClass * def)

Definition at line 179 of file shdsimple.cpp.

◆ ~Shd6SimpleClass()

Shd6SimpleClass::~Shd6SimpleClass ( )
virtual

Definition at line 202 of file shdsimple.cpp.

Member Function Documentation

◆ Apply_Instance()

void Shd6SimpleClass::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 250 of file shdsimple.cpp.

◆ Apply_Shared()

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

Implements ShdInterfaceClass.

Definition at line 220 of file shdsimple.cpp.

◆ Copy_Vertex_Stream()

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

Implements ShdInterfaceClass.

Definition at line 266 of file shdsimple.cpp.

◆ Get_Pass_Count()

virtual int Shd6SimpleClass::Get_Pass_Count ( void )
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 113 of file shdsimple.h.

◆ Get_Texture_Count()

virtual int Shd6SimpleClass::Get_Texture_Count ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 115 of file shdsimple.h.

◆ Get_Vertex_Size()

unsigned Shd6SimpleClass::Get_Vertex_Size ( unsigned stream) const
virtual

Implements ShdInterfaceClass.

Definition at line 261 of file shdsimple.cpp.

◆ Get_Vertex_Stream_Count()

unsigned Shd6SimpleClass::Get_Vertex_Stream_Count ( ) const
virtual

Implements ShdInterfaceClass.

Definition at line 256 of file shdsimple.cpp.

◆ Init()

void Shd6SimpleClass::Init ( )
static

Definition at line 207 of file shdsimple.cpp.

◆ Peek_Texture()

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

Implements ShdInterfaceClass.

Definition at line 116 of file shdsimple.h.

◆ Shutdown()

void Shd6SimpleClass::Shutdown ( )
static

Definition at line 211 of file shdsimple.cpp.

◆ Use_HW_Vertex_Processing()

virtual bool Shd6SimpleClass::Use_HW_Vertex_Processing ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 123 of file shdsimple.h.

Member Data Documentation

◆ Ambient

Vector4 Shd6SimpleClass::Ambient
protected

Definition at line 141 of file shdsimple.h.

◆ Diffuse

Vector4 Shd6SimpleClass::Diffuse
protected

Definition at line 142 of file shdsimple.h.

◆ Material

D3DMATERIAL8* Shd6SimpleClass::Material
protected

Definition at line 137 of file shdsimple.h.

◆ Texture

TextureClass* Shd6SimpleClass::Texture
protected

Definition at line 139 of file shdsimple.h.

◆ View_Projection_Matrix

Matrix4x4 Shd6SimpleClass::View_Projection_Matrix
staticprotected

Definition at line 135 of file shdsimple.h.


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