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

#include <shd8bumpspec.h>

Inherits ShdInterfaceClass.

Public Member Functions

 Shd8BumpSpecClass (const ShdDefClass *def)
 
virtual ~Shd8BumpSpecClass ()
 
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 Specular
 
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 shd8bumpspec.h.

Constructor & Destructor Documentation

◆ Shd8BumpSpecClass()

Shd8BumpSpecClass::Shd8BumpSpecClass ( const ShdDefClass * def)

Definition at line 63 of file shd8bumpspec.cpp.

◆ ~Shd8BumpSpecClass()

Shd8BumpSpecClass::~Shd8BumpSpecClass ( void )
virtual

Definition at line 94 of file shd8bumpspec.cpp.

Member Function Documentation

◆ Apply_Instance()

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

Implements ShdInterfaceClass.

Definition at line 199 of file shd8bumpspec.cpp.

◆ Apply_Shared()

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

Implements ShdInterfaceClass.

Definition at line 145 of file shd8bumpspec.cpp.

◆ Copy_Vertex_Stream()

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

Implements ShdInterfaceClass.

Definition at line 248 of file shd8bumpspec.cpp.

◆ Get_Pass_Count()

virtual int Shd8BumpSpecClass::Get_Pass_Count ( void )
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 57 of file shd8bumpspec.h.

◆ Get_Texture_Count()

virtual int Shd8BumpSpecClass::Get_Texture_Count ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 60 of file shd8bumpspec.h.

◆ Get_Vertex_Size()

unsigned Shd8BumpSpecClass::Get_Vertex_Size ( unsigned stream) const
virtual

Implements ShdInterfaceClass.

Definition at line 243 of file shd8bumpspec.cpp.

◆ Get_Vertex_Stream_Count()

unsigned Shd8BumpSpecClass::Get_Vertex_Stream_Count ( ) const
virtual

Implements ShdInterfaceClass.

Definition at line 238 of file shd8bumpspec.cpp.

◆ Init()

void Shd8BumpSpecClass::Init ( void )
static

Definition at line 100 of file shd8bumpspec.cpp.

◆ Pass_Selection()

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

Reimplemented from ShdInterfaceClass.

Definition at line 347 of file shd8bumpspec.cpp.

◆ Peek_Texture()

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

Implements ShdInterfaceClass.

Definition at line 61 of file shd8bumpspec.h.

◆ Setup_Self_Shadow_Info()

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

Definition at line 372 of file shd8bumpspec.cpp.

◆ Shutdown()

void Shd8BumpSpecClass::Shutdown ( void )
static

Definition at line 137 of file shd8bumpspec.cpp.

◆ Use_HW_Vertex_Processing()

virtual bool Shd8BumpSpecClass::Use_HW_Vertex_Processing ( ) const
inlinevirtual

Implements ShdInterfaceClass.

Definition at line 68 of file shd8bumpspec.h.

Member Data Documentation

◆ Ambient

Vector4 Shd8BumpSpecClass::Ambient
protected

Definition at line 89 of file shd8bumpspec.h.

◆ Bumpiness

Vector4 Shd8BumpSpecClass::Bumpiness
protected

Definition at line 92 of file shd8bumpspec.h.

◆ Diffuse

Vector4 Shd8BumpSpecClass::Diffuse
protected

Definition at line 90 of file shd8bumpspec.h.

◆ NormalMap

TextureClass* Shd8BumpSpecClass::NormalMap
protected

Definition at line 87 of file shd8bumpspec.h.

◆ Pixel_Shader

ShdHWPixelShader Shd8BumpSpecClass::Pixel_Shader
staticprotected

Definition at line 82 of file shd8bumpspec.h.

◆ Self_Shadow_Pixel_Shader

ShdHWPixelShader Shd8BumpSpecClass::Self_Shadow_Pixel_Shader
staticprotected

Definition at line 95 of file shd8bumpspec.h.

◆ Self_Shadow_Transform

Matrix4x4 Shd8BumpSpecClass::Self_Shadow_Transform
protected

Definition at line 97 of file shd8bumpspec.h.

◆ Self_Shadow_Vertex_Shader

ShdHWVertexShader Shd8BumpSpecClass::Self_Shadow_Vertex_Shader
staticprotected

Definition at line 96 of file shd8bumpspec.h.

◆ Specular

Vector4 Shd8BumpSpecClass::Specular
protected

Definition at line 91 of file shd8bumpspec.h.

◆ Texture

TextureClass* Shd8BumpSpecClass::Texture
protected

Definition at line 86 of file shd8bumpspec.h.

◆ Vertex_Shader

ShdHWVertexShader Shd8BumpSpecClass::Vertex_Shader
staticprotected

Definition at line 81 of file shd8bumpspec.h.

◆ View_Projection_Matrix

Matrix4x4 Shd8BumpSpecClass::View_Projection_Matrix
staticprotected

Definition at line 84 of file shd8bumpspec.h.


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