OGRE
1.7
Object-Oriented Graphics Rendering Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OgreShaderFFPRenderState.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OGRE
4
(Object-oriented Graphics Rendering Engine)
5
For the latest info, see http://www.ogre3d.org
6
7
Copyright (c) 2000-2011 Torus Knot Software Ltd
8
Permission is hereby granted, free of charge, to any person obtaining a copy
9
of this software and associated documentation files (the "Software"), to deal
10
in the Software without restriction, including without limitation the rights
11
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
copies of the Software, and to permit persons to whom the Software is
13
furnished to do so, subject to the following conditions:
14
15
The above copyright notice and this permission notice shall be included in
16
all copies or substantial portions of the Software.
17
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
THE SOFTWARE.
25
-----------------------------------------------------------------------------
26
*/
27
#ifndef _ShaderFFPState_
28
#define _ShaderFFPState_
29
30
#include "
OgreShaderPrerequisites.h
"
31
32
namespace
Ogre {
33
namespace
RTShader {
34
42
// Fixed Function vertex shader stages.
43
enum
FFPVertexShaderStage
44
{
45
FFP_VS_PRE_PROCESS
= 0,
46
FFP_VS_TRANSFORM
= 100,
47
FFP_VS_COLOUR
= 200,
48
FFP_VS_LIGHTING
= 300,
49
FFP_VS_TEXTURING
= 400,
50
FFP_VS_FOG
= 500,
51
FFP_VS_POST_PROCESS
= 2000,
52
};
53
54
// Fixed Function fragment shader stages.
55
enum
FFPFragmentShaderStage
56
{
57
FFP_PS_PRE_PROCESS
= 0,
58
FFP_PS_COLOUR_BEGIN
= 100,
59
FFP_PS_TEXTURING
= 200,
60
FFP_PS_COLOUR_END
= 300,
61
FFP_PS_FOG
= 400,
62
FFP_PS_POST_PROCESS
= 500,
63
};
64
65
// Fixed Function generic stages.
66
enum
FFPShaderStage
67
{
68
FFP_PRE_PROCESS
= 0,
69
FFP_TRANSFORM
= 100,
70
FFP_COLOUR
= 200,
71
FFP_LIGHTING
= 300,
72
FFP_TEXTURING
= 400,
73
FFP_FOG
= 500,
74
FFP_POST_PROCESS
= 600,
75
};
76
77
// Fixed Function Library: Common functions
78
#define FFP_LIB_COMMON "FFPLib_Common"
79
#define FFP_FUNC_ASSIGN "FFP_Assign"
80
#define FFP_FUNC_CONSTRUCT "FFP_Construct"
81
#define FFP_FUNC_MODULATE "FFP_Modulate"
82
#define FFP_FUNC_ADD "FFP_Add"
83
#define FFP_FUNC_SUBTRACT "FFP_Subtract"
84
#define FFP_FUNC_LERP "FFP_Lerp"
85
#define FFP_FUNC_DOTPRODUCT "FFP_DotProduct"
86
87
// Fixed Function Library: Transform functions
88
#define FFP_LIB_TRANSFORM "FFPLib_Transform"
89
#define FFP_FUNC_TRANSFORM "FFP_Transform"
90
91
// Fixed Function Library: Lighting functions
92
#define FFP_LIB_LIGHTING "FFPLib_Lighting"
93
#define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSE "FFP_Light_Directional_Diffuse"
94
#define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSESPECULAR "FFP_Light_Directional_DiffuseSpecular"
95
#define FFP_FUNC_LIGHT_POINT_DIFFUSE "FFP_Light_Point_Diffuse"
96
#define FFP_FUNC_LIGHT_POINT_DIFFUSESPECULAR "FFP_Light_Point_DiffuseSpecular"
97
#define FFP_FUNC_LIGHT_SPOT_DIFFUSE "FFP_Light_Spot_Diffuse"
98
#define FFP_FUNC_LIGHT_SPOT_DIFFUSESPECULAR "FFP_Light_Spot_DiffuseSpecular"
99
100
// Fixed Function Library: Texturing functions
101
#define FFP_LIB_TEXTURING "FFPLib_Texturing"
102
#define FFP_FUNC_TRANSFORM_TEXCOORD "FFP_TransformTexCoord"
103
#define FFP_FUNC_GENERATE_TEXCOORD_ENV_NORMAL "FFP_GenerateTexCoord_EnvMap_Normal"
104
#define FFP_FUNC_GENERATE_TEXCOORD_ENV_SPHERE "FFP_GenerateTexCoord_EnvMap_Sphere"
105
#define FFP_FUNC_GENERATE_TEXCOORD_ENV_REFLECT "FFP_GenerateTexCoord_EnvMap_Reflect"
106
#define FFP_FUNC_GENERATE_TEXCOORD_PROJECTION "FFP_GenerateTexCoord_Projection"
107
#define FFP_FUNC_SAMPLE_TEXTURE "FFP_SampleTexture"
108
#define FFP_FUNC_SAMPLE_TEXTURE_PROJ "FFP_SampleTextureProj"
109
#define FFP_FUNC_MODULATEX2 "FFP_ModulateX2"
110
#define FFP_FUNC_MODULATEX4 "FFP_ModulateX4"
111
#define FFP_FUNC_ADDSIGNED "FFP_AddSigned"
112
#define FFP_FUNC_ADDSMOOTH "FFP_AddSmooth"
113
114
// Fixed Function Library: Fog functions
115
#define FFP_LIB_FOG "FFPLib_Fog"
116
#define FFP_FUNC_VERTEXFOG_LINEAR "FFP_VertexFog_Linear"
117
#define FFP_FUNC_VERTEXFOG_EXP "FFP_VertexFog_Exp"
118
#define FFP_FUNC_VERTEXFOG_EXP2 "FFP_VertexFog_Exp2"
119
#define FFP_FUNC_PIXELFOG_DEPTH "FFP_PixelFog_Depth"
120
#define FFP_FUNC_PIXELFOG_LINEAR "FFP_PixelFog_Linear"
121
#define FFP_FUNC_PIXELFOG_EXP "FFP_PixelFog_Exp"
122
#define FFP_FUNC_PIXELFOG_EXP2 "FFP_PixelFog_Exp2"
123
124
128
}
129
}
130
131
#endif
132
Ogre::RTShader::FFP_VS_FOG
Definition:
OgreShaderFFPRenderState.h:50
Ogre::RTShader::FFP_PRE_PROCESS
Definition:
OgreShaderFFPRenderState.h:68
Ogre::RTShader::FFP_PS_TEXTURING
Definition:
OgreShaderFFPRenderState.h:59
Ogre::RTShader::FFP_LIGHTING
Definition:
OgreShaderFFPRenderState.h:71
Ogre::RTShader::FFP_VS_TEXTURING
Definition:
OgreShaderFFPRenderState.h:49
Ogre::RTShader::FFP_FOG
Definition:
OgreShaderFFPRenderState.h:73
Ogre::RTShader::FFP_VS_COLOUR
Definition:
OgreShaderFFPRenderState.h:47
Ogre::RTShader::FFP_PS_COLOUR_END
Definition:
OgreShaderFFPRenderState.h:60
Ogre::RTShader::FFP_VS_TRANSFORM
Definition:
OgreShaderFFPRenderState.h:46
Ogre::RTShader::FFP_POST_PROCESS
Definition:
OgreShaderFFPRenderState.h:74
Ogre::RTShader::FFP_PS_POST_PROCESS
Definition:
OgreShaderFFPRenderState.h:62
Ogre::RTShader::FFP_TRANSFORM
Definition:
OgreShaderFFPRenderState.h:69
Ogre::RTShader::FFP_VS_LIGHTING
Definition:
OgreShaderFFPRenderState.h:48
Ogre::RTShader::FFP_PS_PRE_PROCESS
Definition:
OgreShaderFFPRenderState.h:57
Ogre::RTShader::FFP_PS_FOG
Definition:
OgreShaderFFPRenderState.h:61
Ogre::RTShader::FFP_VS_POST_PROCESS
Definition:
OgreShaderFFPRenderState.h:51
Ogre::RTShader::FFPVertexShaderStage
FFPVertexShaderStage
Definition:
OgreShaderFFPRenderState.h:43
Ogre::RTShader::FFP_PS_COLOUR_BEGIN
Definition:
OgreShaderFFPRenderState.h:58
Ogre::RTShader::FFP_COLOUR
Definition:
OgreShaderFFPRenderState.h:70
Ogre::RTShader::FFP_VS_PRE_PROCESS
Definition:
OgreShaderFFPRenderState.h:45
Ogre::RTShader::FFP_TEXTURING
Definition:
OgreShaderFFPRenderState.h:72
OgreShaderPrerequisites.h
Ogre::RTShader::FFPFragmentShaderStage
FFPFragmentShaderStage
Definition:
OgreShaderFFPRenderState.h:55
Ogre::RTShader::FFPShaderStage
FFPShaderStage
Definition:
OgreShaderFFPRenderState.h:66
Components
RTShaderSystem
include
OgreShaderFFPRenderState.h
Generated on Fri Jun 20 2014 01:03:16 for OGRE by
1.8.7