# OgreShaderFFPRenderState.h

Go to the documentation of this file.

    00001 /*
    00002 -----------------------------------------------------------------------------
    00003 This source file is part of OGRE
    00004 (Object-oriented Graphics Rendering Engine)
    00005 For the latest info, see http://www.ogre3d.org
    00006
    00007 Copyright (c) 2000-2009 Torus Knot Software Ltd
    00008 Permission is hereby granted, free of charge, to any person obtaining a copy
    00009 of this software and associated documentation files (the "Software"), to deal
    00010 in the Software without restriction, including without limitation the rights
    00011 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    00012 copies of the Software, and to permit persons to whom the Software is
    00013 furnished to do so, subject to the following conditions:
    00014
    00015 The above copyright notice and this permission notice shall be included in
    00016 all copies or substantial portions of the Software.
    00017
    00018 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    00019 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00020 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    00021 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00022 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    00023 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    00024 THE SOFTWARE.
    00025 -----------------------------------------------------------------------------
    00026 */
    00027 #ifndef _ShaderFFPState_
    00028 #define _ShaderFFPState_
    00029
    00030 #include "OgreShaderPrerequisites.h"
    00031
    00032 namespace Ogre {
    00033 namespace RTShader {
    00034
    00042 // Fixed Function vertex shader stages.
    00043 enum FFPVertexShaderStage
    00044 {
    00045     FFP_VS_PRE_PROCESS                  = 0,
    00046     FFP_VS_TRANSFORM                    = 100,
    00047     FFP_VS_COLOUR                       = 200,
    00048     FFP_VS_LIGHTING                     = 300,
    00049     FFP_VS_TEXTURING                    = 400,
    00050     FFP_VS_FOG                          = 500,
    00051     FFP_VS_POST_PROCESS                 = 2000,
    00052 };
    00053
    00054 // Fixed Function fragment shader stages.
    00055 enum FFPFragmentShaderStage
    00056 {
    00057     FFP_PS_PRE_PROCESS                  = 0,
    00058     FFP_PS_COLOUR_BEGIN                 = 100,
    00059     FFP_PS_TEXTURING                    = 200,
    00060     FFP_PS_COLOUR_END                   = 300,
    00061     FFP_PS_FOG                          = 400,
    00062     FFP_PS_POST_PROCESS                 = 500,
    00063 };
    00064
    00065 // Fixed Function generic stages.
    00066 enum FFPShaderStage
    00067 {
    00068     FFP_PRE_PROCESS                     = 0,
    00069     FFP_TRANSFORM                       = 100,
    00070     FFP_COLOUR                          = 200,
    00071     FFP_LIGHTING                        = 300,
    00072     FFP_TEXTURING                       = 400,
    00073     FFP_FOG                             = 500,
    00074     FFP_POST_PROCESS                    = 600,
    00075 };
    00076
    00077 // Fixed Function Library: Common functions
    00078 #define FFP_LIB_COMMON                              "FFPLib_Common"
    00079 #define FFP_FUNC_ASSIGN                             "FFP_Assign"
    00080 #define FFP_FUNC_CONSTRUCT                          "FFP_Construct"
    00081 #define FFP_FUNC_MODULATE                           "FFP_Modulate"
    00082 #define FFP_FUNC_ADD                                "FFP_Add"
    00083 #define FFP_FUNC_SUBTRACT                           "FFP_Subtract"
    00084 #define FFP_FUNC_LERP                               "FFP_Lerp"
    00085 #define FFP_FUNC_DOTPRODUCT                         "FFP_DotProduct"
    00086
    00087 // Fixed Function Library: Transform functions
    00088 #define FFP_LIB_TRANSFORM                           "FFPLib_Transform"
    00089 #define FFP_FUNC_TRANSFORM                          "FFP_Transform"
    00090
    00091 // Fixed Function Library: Lighting functions
    00092 #define FFP_LIB_LIGHTING                            "FFPLib_Lighting"
    00093 #define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSE          "FFP_Light_Directional_Diffuse"
    00094 #define FFP_FUNC_LIGHT_DIRECTIONAL_DIFFUSESPECULAR  "FFP_Light_Directional_DiffuseSpecular"
    00095 #define FFP_FUNC_LIGHT_POINT_DIFFUSE                "FFP_Light_Point_Diffuse"
    00096 #define FFP_FUNC_LIGHT_POINT_DIFFUSESPECULAR        "FFP_Light_Point_DiffuseSpecular"
    00097 #define FFP_FUNC_LIGHT_SPOT_DIFFUSE                 "FFP_Light_Spot_Diffuse"
    00098 #define FFP_FUNC_LIGHT_SPOT_DIFFUSESPECULAR         "FFP_Light_Spot_DiffuseSpecular"
    00099
    00100 // Fixed Function Library: Texturing functions
    00101 #define FFP_LIB_TEXTURING                           "FFPLib_Texturing"
    00102 #define FFP_FUNC_TRANSFORM_TEXCOORD                 "FFP_TransformTexCoord"
    00103 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_NORMAL       "FFP_GenerateTexCoord_EnvMap_Normal"
    00104 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_SPHERE       "FFP_GenerateTexCoord_EnvMap_Sphere"
    00105 #define FFP_FUNC_GENERATE_TEXCOORD_ENV_REFLECT      "FFP_GenerateTexCoord_EnvMap_Reflect"
    00106 #define FFP_FUNC_GENERATE_TEXCOORD_PROJECTION       "FFP_GenerateTexCoord_Projection"
    00107 #define FFP_FUNC_SAMPLE_TEXTURE                     "FFP_SampleTexture"
    00108 #define FFP_FUNC_SAMPLE_TEXTURE_PROJ                "FFP_SampleTextureProj"
    00109 #define FFP_FUNC_MODULATEX2                         "FFP_ModulateX2"
    00110 #define FFP_FUNC_MODULATEX4                         "FFP_ModulateX4"
    00111 #define FFP_FUNC_ADDSIGNED                          "FFP_AddSigned"
    00112 #define FFP_FUNC_ADDSMOOTH                          "FFP_AddSmooth"
    00113
    00114 // Fixed Function Library: Fog functions
    00115 #define FFP_LIB_FOG                                 "FFPLib_Fog"
    00116 #define FFP_FUNC_VERTEXFOG_LINEAR                   "FFP_VertexFog_Linear"
    00117 #define FFP_FUNC_VERTEXFOG_EXP                      "FFP_VertexFog_Exp"
    00118 #define FFP_FUNC_VERTEXFOG_EXP2                     "FFP_VertexFog_Exp2"
    00119 #define FFP_FUNC_PIXELFOG_DEPTH                     "FFP_PixelFog_Depth"
    00120 #define FFP_FUNC_PIXELFOG_LINEAR                    "FFP_PixelFog_Linear"
    00121 #define FFP_FUNC_PIXELFOG_EXP                       "FFP_PixelFog_Exp"
    00122 #define FFP_FUNC_PIXELFOG_EXP2                      "FFP_PixelFog_Exp2"
    00123
    00124
    00128 }
    00129 }
    00130
    00131 #endif
    00132

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun May 8 2011 20:28:09