Gizmo3D

gzShader.h File Reference

Base definitions of vertex and pixel shaders. More...

#include "gzObject.h"
#include "gzMatrix.h"
#include "gzImage.h"

Go to the source code of this file.

Classes

class  gzParameterUpdateInfo
class  gzGFXProgramManager
union  gzFloatInt
class  gzGFXProgramParameter
class  gzGlobalGFXProgramParams
class  gzVertexAttributeIndex
class  gzGFXProgram
class  gzGFXProgramManager_VFP_1
class  gzGFXProgramManager_GLSL_1

Enumerations

enum  gzGFXProgramType {
  GZ_GFX_VERTEX_PROGRAM = 0, GZ_GFX_GEOMETRY_PROGRAM = 1, GZ_GFX_FRAGMENT_PROGRAM = 2, GZ_GFX_SOFTWARE_PROGRAM = 3,
  GZ_GFX_GLOBAL = 4
}
 Defines the current types of program. More...
enum  gzGFXProgramParameterType {
  GZ_GFX_PARAM_INTEGER, GZ_GFX_PARAM_FLOAT, GZ_GFX_PARAM_VEC2, GZ_GFX_PARAM_IVEC2,
  GZ_GFX_PARAM_VEC3, GZ_GFX_PARAM_IVEC3, GZ_GFX_PARAM_VEC4, GZ_GFX_PARAM_IVEC4,
  GZ_GFX_PARAM_MAT2, GZ_GFX_PARAM_MAT3, GZ_GFX_PARAM_MAT4
}

Functions

gzVoid gzInitializeGFXProgramManagers ()
gzVoid gzUninitializeGFXProgramManagers ()
gzStategzGetBuiltInState_Phong ()
 Interpolates the normal over a surface.

Variables

const gzULong GZ_NUMBER_OF_GFX_PROGRAM_TYPES = 4
const gzString GZ_GFX_GLOBAL_ENABLED_LIGHTS = "gz_EnabledLights"
const gzString GZ_GFX_GLOBAL_ENABLED_LIGHT = "gz_EnabledLight"
const gzString GZ_GFX_GLOBAL_RENDER_TIME = "gz_RenderTime"
const gzString GZ_GFX_GLOBAL_RENDER_DAY = "gz_RenderDay"
const gzString GZ_GFX_GLOBAL_WIN_WIDTH = "gz_WinWidth"
const gzString GZ_GFX_GLOBAL_WIN_HEIGHT = "gz_WinHeight"
const gzString GZ_GFX_PROGRAM_SETTINGS = "GZ_GFX_PROGRAM_SETTINGS"
const gzString GZ_GFX_GEOMETRY_PROGRAM_INPUT_TYPE = "GZ_GFX_GEOMETRY_PROGRAM_INPUT_TYPE"
const gzString GZ_GFX_GEOMETRY_PROGRAM_OUTPUT_TYPE = "GZ_GFX_GEOMETRY_PROGRAM_OUTPUT_TYPE"
const gzString GZ_GFX_GEOMETRY_PROGRAM_VERTICES_OUT = "GZ_GFX_GEOMETRY_PROGRAM_VERTICES_OUT"
const gzString GZ_ALPHA_NORMAL_VP = "GZ_ALPHA_NORMAL_VP"
const gzString GZ_PHONG_VP = "GZ_PHONG_VP"
 Renders alpha modulated by view vector and normals.
const gzString GZ_PHONG_FP = "GZ_PHONG_FP"
 Interpolates the normal over a surface.


Detailed Description

Base definitions of vertex and pixel shaders.

Definition in file gzShader.h.


Enumeration Type Documentation

enum gzGFXProgramParameterType
 

Enumerator:
GZ_GFX_PARAM_INTEGER 
GZ_GFX_PARAM_FLOAT 
GZ_GFX_PARAM_VEC2 
GZ_GFX_PARAM_IVEC2 
GZ_GFX_PARAM_VEC3 
GZ_GFX_PARAM_IVEC3 
GZ_GFX_PARAM_VEC4 
GZ_GFX_PARAM_IVEC4 
GZ_GFX_PARAM_MAT2 
GZ_GFX_PARAM_MAT3 
GZ_GFX_PARAM_MAT4 

Definition at line 142 of file gzShader.h.

enum gzGFXProgramType
 

Defines the current types of program.

Enumerator:
GZ_GFX_VERTEX_PROGRAM 
GZ_GFX_GEOMETRY_PROGRAM 
GZ_GFX_FRAGMENT_PROGRAM 
GZ_GFX_SOFTWARE_PROGRAM 
GZ_GFX_GLOBAL 

Definition at line 41 of file gzShader.h.


Function Documentation

gzState* gzGetBuiltInState_Phong  ) 
 

Interpolates the normal over a surface.

gzVoid gzInitializeGFXProgramManagers  ) 
 

gzVoid gzUninitializeGFXProgramManagers  ) 
 


Variable Documentation

const gzString GZ_ALPHA_NORMAL_VP = "GZ_ALPHA_NORMAL_VP"
 

Definition at line 485 of file gzShader.h.

const gzString GZ_GFX_GEOMETRY_PROGRAM_INPUT_TYPE = "GZ_GFX_GEOMETRY_PROGRAM_INPUT_TYPE"
 

Definition at line 201 of file gzShader.h.

const gzString GZ_GFX_GEOMETRY_PROGRAM_OUTPUT_TYPE = "GZ_GFX_GEOMETRY_PROGRAM_OUTPUT_TYPE"
 

Definition at line 202 of file gzShader.h.

const gzString GZ_GFX_GEOMETRY_PROGRAM_VERTICES_OUT = "GZ_GFX_GEOMETRY_PROGRAM_VERTICES_OUT"
 

Definition at line 203 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_ENABLED_LIGHT = "gz_EnabledLight"
 

Definition at line 54 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_ENABLED_LIGHTS = "gz_EnabledLights"
 

Definition at line 53 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_RENDER_DAY = "gz_RenderDay"
 

Definition at line 56 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_RENDER_TIME = "gz_RenderTime"
 

Definition at line 55 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_WIN_HEIGHT = "gz_WinHeight"
 

Definition at line 58 of file gzShader.h.

const gzString GZ_GFX_GLOBAL_WIN_WIDTH = "gz_WinWidth"
 

Definition at line 57 of file gzShader.h.

const gzString GZ_GFX_PROGRAM_SETTINGS = "GZ_GFX_PROGRAM_SETTINGS"
 

Definition at line 197 of file gzShader.h.

const gzULong GZ_NUMBER_OF_GFX_PROGRAM_TYPES = 4
 

Definition at line 49 of file gzShader.h.

const gzString GZ_PHONG_FP = "GZ_PHONG_FP"
 

Interpolates the normal over a surface.

Definition at line 488 of file gzShader.h.

const gzString GZ_PHONG_VP = "GZ_PHONG_VP"
 

Renders alpha modulated by view vector and normals.

Definition at line 487 of file gzShader.h.


Documentation for Gizmo3D generated at Wed Feb 20 11:54:14 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond