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

#include <shd6bumpdiff.h>

Inherits ShdInterfaceClass.

Public Member Functions

 Shd6BumpDiffClass (const ShdDefClass *def)
 
virtual ~Shd6BumpDiffClass ()
 
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 specular with gloss map (no bump)
 
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

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

Static Protected Attributes

static ShdHWVertexShader Vertex_Shader
 
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 51 of file shd6bumpdiff.h.

Constructor & Destructor Documentation

◆ Shd6BumpDiffClass()

Shd6BumpDiffClass::Shd6BumpDiffClass ( const ShdDefClass * def)

Definition at line 57 of file shd6bumpdiff.cpp.

◆ ~Shd6BumpDiffClass()

Shd6BumpDiffClass::~Shd6BumpDiffClass ( )
virtual

Definition at line 75 of file shd6bumpdiff.cpp.

Member Function Documentation

◆ Apply_Instance()

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

Apply per instance states for 1 pass DX6 specular with gloss map (no bump)

7/10/02 5:39p KJM Created

Implements ShdInterfaceClass.

Definition at line 146 of file shd6bumpdiff.cpp.

◆ Apply_Shared()

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

Implements ShdInterfaceClass.

Definition at line 110 of file shd6bumpdiff.cpp.

◆ Copy_Vertex_Stream()

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

Implements ShdInterfaceClass.

Definition at line 179 of file shd6bumpdiff.cpp.

◆ Get_Pass_Count()

virtual int Shd6BumpDiffClass::Get_Pass_Count ( void )
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 60 of file shd6bumpdiff.h.

◆ Get_Texture_Count()

virtual int Shd6BumpDiffClass::Get_Texture_Count ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 62 of file shd6bumpdiff.h.

◆ Get_Vertex_Size()

unsigned Shd6BumpDiffClass::Get_Vertex_Size ( unsigned stream) const
virtual

Implements ShdInterfaceClass.

Definition at line 174 of file shd6bumpdiff.cpp.

◆ Get_Vertex_Stream_Count()

unsigned Shd6BumpDiffClass::Get_Vertex_Stream_Count ( ) const
virtual

Implements ShdInterfaceClass.

Definition at line 169 of file shd6bumpdiff.cpp.

◆ Init()

void Shd6BumpDiffClass::Init ( )
static

Definition at line 80 of file shd6bumpdiff.cpp.

◆ Peek_Texture()

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

Implements ShdInterfaceClass.

Definition at line 63 of file shd6bumpdiff.h.

◆ Shutdown()

void Shd6BumpDiffClass::Shutdown ( )
static

Definition at line 100 of file shd6bumpdiff.cpp.

◆ Use_HW_Vertex_Processing()

virtual bool Shd6BumpDiffClass::Use_HW_Vertex_Processing ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 70 of file shd6bumpdiff.h.

Member Data Documentation

◆ Ambient

Vector4 Shd6BumpDiffClass::Ambient
protected

Definition at line 86 of file shd6bumpdiff.h.

◆ Diffuse

Vector4 Shd6BumpDiffClass::Diffuse
protected

Definition at line 87 of file shd6bumpdiff.h.

◆ Texture

TextureClass* Shd6BumpDiffClass::Texture
protected

Definition at line 84 of file shd6bumpdiff.h.

◆ Vertex_Shader

ShdHWVertexShader Shd6BumpDiffClass::Vertex_Shader
staticprotected

Definition at line 81 of file shd6bumpdiff.h.

◆ View_Projection_Matrix

Matrix4x4 Shd6BumpDiffClass::View_Projection_Matrix
staticprotected

Definition at line 82 of file shd6bumpdiff.h.


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