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

#include <shdhwshader.h>

Inherits ShdHWShader.

Public Member Functions

virtual ~ShdHWVertexShader ()
 Destruct this vertex shader.
 
DWORD Create (char *file_name, DWORD *vertex_shader_declaration)
 Create Vertex Shader from a file and vertex stream declaration.
 
DWORD Create (DWORD *shader_code, DWORD *vertex_shader_declaration)
 Create Vertex Shader from a dword constant and vertex stream declaration.
 
void Destroy ()
 Destroy this vertex shader.
 
- Public Member Functions inherited from ShdHWShader
 ShdHWShader ()
 
virtual ~ShdHWShader ()
 
DWORD Peek_Shader () const
 

Static Public Member Functions

static bool Is_Using_Hardware ()
 
static void Light (RenderInfoClass &rinfo, Vector4 &ambient, Vector4 &diffuse, Vector4 &specular)
 Apply generic lighting.
 
static void Light (RenderInfoClass &rinfo, Vector4 &ambient, Vector4 &diffuse)
 Apply generic lighting (no specular supplied)
 

Additional Inherited Members

- Protected Member Functions inherited from ShdHWShader
void Shell_Run (char *cmd)
 Execute and wait for a hidden shell command.
 
void Preprocess_And_Assemble_Shader_From_File (char *file_name, LPD3DXBUFFER *constants, LPD3DXBUFFER *shader_code)
 Preprocess and assemble a HW shader from file.
 
- Protected Attributes inherited from ShdHWShader
DWORD Shader
 

Detailed Description

Definition at line 82 of file shdhwshader.h.

Constructor & Destructor Documentation

◆ ~ShdHWVertexShader()

ShdHWVertexShader::~ShdHWVertexShader ( )
virtual

Destruct this vertex shader.

5/27/02 5:39p KJM Created

Definition at line 156 of file shdhwshader.cpp.

Member Function Documentation

◆ Create() [1/2]

DWORD ShdHWVertexShader::Create ( char * file_name,
DWORD * vertex_shader_declaration )

Create Vertex Shader from a file and vertex stream declaration.

05/27/02 5:39p KJM Created /*! 06/06/02 KM added software vertex shader fallback check

Definition at line 180 of file shdhwshader.cpp.

◆ Create() [2/2]

DWORD ShdHWVertexShader::Create ( DWORD * shader_code_str,
DWORD * vertex_shader_declaration )

Create Vertex Shader from a dword constant and vertex stream declaration.

07/19/02 3:39p KJM Created

Definition at line 229 of file shdhwshader.cpp.

◆ Destroy()

void ShdHWVertexShader::Destroy ( )

Destroy this vertex shader.

5/27/02 5:39p KJM Created

Definition at line 165 of file shdhwshader.cpp.

◆ Is_Using_Hardware()

static bool ShdHWVertexShader::Is_Using_Hardware ( )
inlinestatic

Definition at line 101 of file shdhwshader.h.

◆ Light() [1/2]

void ShdHWVertexShader::Light ( RenderInfoClass & rinfo,
Vector4 & ambient,
Vector4 & diffuse )
static

Apply generic lighting (no specular supplied)

07/07/02 12:23p KJM Created

Definition at line 500 of file shdhwshader.cpp.

◆ Light() [2/2]

void ShdHWVertexShader::Light ( RenderInfoClass & rinfo,
Vector4 & ambient,
Vector4 & diffuse,
Vector4 & specular )
static

Apply generic lighting.

07/07/02 12:23p KJM Created

Definition at line 374 of file shdhwshader.cpp.


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