OGRE: OgreShaderPrerequisites.h Source File - OGRE Documentation

# OgreShaderPrerequisites.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 __ShaderPrerequisites_H__
    00028 #define __ShaderPrerequisites_H__
    00029
    00030 #include "OgrePrerequisites.h"
    00031 #include "OgreCommon.h"
    00032
    00033 namespace Ogre
    00034 {
    00035
    00037 class Technique;
    00038 class Pass;
    00039 class Renderable;
    00040 class Viewport;
    00041 class RenderObjectListener;
    00042 class TextureUnitState;
    00043 class Frustum;
    00044 class ScriptTranslator;
    00045 class ScriptCompiler;
    00046 class PropertyAbstractNode;
    00047 class MaterialSerializer;
    00048
    00049 typedef GeneralAllocatedObject  RTShaderSystemAlloc;
    00050
    00051 namespace RTShader
    00052 {
    00053
    00055 class RenderState;
    00056 class TargetRenderState;
    00057 class SubRenderState;
    00058 class SubRenderStateAccessor;
    00059 class SubRenderStateFactory;
    00060 class ProgramManager;
    00061 class Program;
    00062 class ProgramProcessor;
    00063 class ProgramSet;
    00064 class RenderState;
    00065 class Parameter;
    00066 class Function;
    00067 class FFPRenderStateBuilder;
    00068 class ShaderGenerator;
    00069 class SGMaterialSerializerListener;
    00070 class ProgramWriterFactory;
    00071 class ProgramWriterManager;
    00072
    00074 template <class T>
    00075 inline void sh_hash_combine(uint32& seed, T const& v)
    00076 {
    00077     seed ^= FastHash((const char*)&v, sizeof(T)) + 0x9e3779b9 + (seed<<6) + (seed>>2);
    00078 }
    00079
    00080 // Vertex shader output parameters compact policy.
    00081 enum VSOutputCompactPolicy
    00082 {
    00083     VSOCP_LOW       = 0,        // VS Outputs will be compacted just in case the maximum slot count exceeded.
    00084     VSOCP_MEDIUM    = 1,        // VS Outputs will be compacted always without parameter splits.
    00085     VSOCP_HIGH      = 2,        // VS Outputs will be compacted always including parameter splits.
    00086 };
    00087
    00088 }
    00089 }
    00090
    00091 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
    00092 #   if defined( OGRE_STATIC_LIB )
    00093 #       define _OgreRTSSExport
    00094 #   else
    00095 #       if defined( OgreRTShaderSystem_EXPORTS )
    00096 #           define _OgreRTSSExport __declspec( dllexport )
    00097 #       else
    00098 #           if defined( __MINGW32__ )
    00099 #               define _OgreRTSSExport
    00100 #           else
    00101 #               define _OgreRTSSExport __declspec( dllimport )
    00102 #           endif
    00103 #       endif
    00104 #   endif
    00105 #elif defined ( OGRE_GCC_VISIBILITY )
    00106 #   define _OgreRTSSExport __attribute__ ((visibility("default")))
    00107 #else
    00108 #   define _OgreRTSSExport
    00109 #endif
    00110
    00111
    00112 #endif
    00113

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Nov 3 2010 19:24:52