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

#include <shd8bumpdiff.h>

Inherits ShdInterfaceClass.

Public Member Functions

 Shd8BumpDiffClass (const ShdDefClass *def)
 
virtual ~Shd8BumpDiffClass ()
 
virtual int Get_Pass_Count ()
 
virtual bool Pass_Selection (ShdMeshClass *, RenderInfoClass *, int)
 
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)
 
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 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 Member Functions

void Setup_Self_Shadow_Info (ShdMeshClass &mesh, RenderInfoClass &rinfo)
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

TextureClassTexture
 
TextureClassNormalMap
 
Vector4 Ambient
 
Vector4 Diffuse
 
Vector4 Bumpiness
 
Matrix4x4 Self_Shadow_Transform
 
- Protected Attributes inherited from ShdInterfaceClass
const ShdDefClassDefinition
 
int ClassID
 

Static Protected Attributes

static ShdHWVertexShader Vertex_Shader
 
static ShdHWPixelShader Pixel_Shader
 
static Matrix4x4 View_Projection_Matrix
 
static ShdHWPixelShader Self_Shadow_Pixel_Shader
 
static ShdHWVertexShader Self_Shadow_Vertex_Shader
 

Additional Inherited Members

- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Detailed Description

Definition at line 48 of file shd8bumpdiff.h.

Constructor & Destructor Documentation

◆ Shd8BumpDiffClass()

Shd8BumpDiffClass::Shd8BumpDiffClass ( const ShdDefClass * def)

Definition at line 63 of file shd8bumpdiff.cpp.

◆ ~Shd8BumpDiffClass()

Shd8BumpDiffClass::~Shd8BumpDiffClass ( void )
virtual

Definition at line 90 of file shd8bumpdiff.cpp.

Member Function Documentation

◆ Apply_Instance()

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

Implements ShdInterfaceClass.

Definition at line 174 of file shd8bumpdiff.cpp.

◆ Apply_Shared()

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

Implements ShdInterfaceClass.

Definition at line 136 of file shd8bumpdiff.cpp.

◆ Copy_Vertex_Stream()

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

Implements ShdInterfaceClass.

Definition at line 222 of file shd8bumpdiff.cpp.

◆ Get_Pass_Count()

virtual int Shd8BumpDiffClass::Get_Pass_Count ( void )
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 57 of file shd8bumpdiff.h.

◆ Get_Texture_Count()

virtual int Shd8BumpDiffClass::Get_Texture_Count ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 60 of file shd8bumpdiff.h.

◆ Get_Vertex_Size()

unsigned Shd8BumpDiffClass::Get_Vertex_Size ( unsigned stream) const
virtual

Implements ShdInterfaceClass.

Definition at line 217 of file shd8bumpdiff.cpp.

◆ Get_Vertex_Stream_Count()

unsigned Shd8BumpDiffClass::Get_Vertex_Stream_Count ( ) const
virtual

Implements ShdInterfaceClass.

Definition at line 212 of file shd8bumpdiff.cpp.

◆ Init()

void Shd8BumpDiffClass::Init ( void )
static

Definition at line 96 of file shd8bumpdiff.cpp.

◆ Pass_Selection()

bool Shd8BumpDiffClass::Pass_Selection ( ShdMeshClass * mesh,
RenderInfoClass * rinfo,
int pass )
virtual

Reimplemented from ShdInterfaceClass.

Definition at line 321 of file shd8bumpdiff.cpp.

◆ Peek_Texture()

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

Implements ShdInterfaceClass.

Definition at line 61 of file shd8bumpdiff.h.

◆ Setup_Self_Shadow_Info()

void Shd8BumpDiffClass::Setup_Self_Shadow_Info ( ShdMeshClass & mesh,
RenderInfoClass & rinfo )
protected

Definition at line 346 of file shd8bumpdiff.cpp.

◆ Shutdown()

void Shd8BumpDiffClass::Shutdown ( void )
static

Definition at line 128 of file shd8bumpdiff.cpp.

◆ Use_HW_Vertex_Processing()

virtual bool Shd8BumpDiffClass::Use_HW_Vertex_Processing ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 68 of file shd8bumpdiff.h.

Member Data Documentation

◆ Ambient

Vector4 Shd8BumpDiffClass::Ambient
protected

Definition at line 89 of file shd8bumpdiff.h.

◆ Bumpiness

Vector4 Shd8BumpDiffClass::Bumpiness
protected

Definition at line 91 of file shd8bumpdiff.h.

◆ Diffuse

Vector4 Shd8BumpDiffClass::Diffuse
protected

Definition at line 90 of file shd8bumpdiff.h.

◆ NormalMap

TextureClass* Shd8BumpDiffClass::NormalMap
protected

Definition at line 87 of file shd8bumpdiff.h.

◆ Pixel_Shader

ShdHWPixelShader Shd8BumpDiffClass::Pixel_Shader
staticprotected

Definition at line 82 of file shd8bumpdiff.h.

◆ Self_Shadow_Pixel_Shader

ShdHWPixelShader Shd8BumpDiffClass::Self_Shadow_Pixel_Shader
staticprotected

Definition at line 94 of file shd8bumpdiff.h.

◆ Self_Shadow_Transform

Matrix4x4 Shd8BumpDiffClass::Self_Shadow_Transform
protected

Definition at line 96 of file shd8bumpdiff.h.

◆ Self_Shadow_Vertex_Shader

ShdHWVertexShader Shd8BumpDiffClass::Self_Shadow_Vertex_Shader
staticprotected

Definition at line 95 of file shd8bumpdiff.h.

◆ Texture

TextureClass* Shd8BumpDiffClass::Texture
protected

Definition at line 86 of file shd8bumpdiff.h.

◆ Vertex_Shader

ShdHWVertexShader Shd8BumpDiffClass::Vertex_Shader
staticprotected

Definition at line 81 of file shd8bumpdiff.h.

◆ View_Projection_Matrix

Matrix4x4 Shd8BumpDiffClass::View_Projection_Matrix
staticprotected

Definition at line 84 of file shd8bumpdiff.h.


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