OGRE  1.9.0
OgreShadowVolumeExtrudeProgram.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4(Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2014 Torus Knot Software Ltd
8
9Permission is hereby granted, free of charge, to any person obtaining a copy
10of this software and associated documentation files (the "Software"), to deal
11in the Software without restriction, including without limitation the rights
12to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom the Software is
14furnished to do so, subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in
17all copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25THE SOFTWARE.
26-----------------------------------------------------------------------------
27*/
28
29#ifndef __SHADOWVOLUMEEXTRUDEPROGRAM_H__
30#define __SHADOWVOLUMEEXTRUDEPROGRAM_H__
31
32#include "OgrePrerequisites.h"
33#include "OgreLight.h"
34#include "OgreHeaderPrefix.h"
35
36namespace Ogre {
137 {
138 private:
149 // same as above, except the color is set to 1 to enable debug volumes to be seen
160
171 // same as above, except the color is set to 1 to enable debug volumes to be seen
182
186
187 static bool mInitialised;
188
189 public:
190#define OGRE_NUM_SHADOW_EXTRUDER_PROGRAMS 8
192 {
193 // Point light extruder, infinite distance
195 // Point light extruder, infinite distance, debug mode
197 // Directional light extruder, infinite distance
199 // Directional light extruder, infinite distance, debug mode
201 // Point light extruder, finite distance
203 // Point light extruder, finite distance, debug mode
205 // Directional light extruder, finite distance
207 // Directional light extruder, finite distance, debug mode
209
210 };
213
215 static void initialise(void);
217 static void shutdown(void);
219 static const String& getPointLightExtruderArbvp1(void) { return mPointArbvp1; }
221 static const String& getPointLightExtruderVs_1_1(void) { return mPointVs_1_1; }
223 static const String& getPointLightExtruderVs_4_0(void) { return mPointVs_4_0; }
225 static const String& getPointLightExtruderVs_glsl(void) { return mPointVs_glsl; }
238
260 static const String& getProgramSource(Light::LightTypes lightType, const String syntax,
261 bool finite, bool debug);
262
263 static const String& getProgramName(Light::LightTypes lightType, bool finite, bool debug);
264
265
286
307
308 };
309
311}
312
313#include "OgreHeaderSuffix.h"
314
315#endif
#define _OgreExport
#define OGRE_NUM_SHADOW_EXTRUDER_PROGRAMS
LightTypes
Defines the type of light.
Definition OgreLight.h:83
Static class containing source for vertex programs for extruding shadow volumes.
static const String & getPointLightExtruderVs_1_1Finite(void)
Get FINITE extruder program source for point lights, compatible with vs_1_1.
static const String & getPointLightExtruderVs_glsl(void)
Get extruder program source for point lights, compatible with glsl.
static const String & getDirectionalLightExtruderVs_1_1(void)
Get extruder program source for directional lights, compatible with vs_1_1.
static const String & getDirectionalLightExtruderVs_4_0Debug(void)
Get extruder program source for debug directional lights, compatible with vs_4_0.
static const String & getProgramName(Light::LightTypes lightType, bool finite, bool debug)
static const String & getPointLightExtruderVs_4_0FiniteDebug(void)
Get extruder program source for debug point lights, compatible with vs_4_0.
static const String & getPointLightExtruderArbvp1Debug(void)
Get extruder program source for debug point lights, compatible with arbvp1.
static const String & getPointLightExtruderVs_glslDebug(void)
Get extruder program source for debug point lights, compatible with glsl.
static const String & getPointLightExtruderVs_4_0Debug(void)
Get extruder program source for debug point lights, compatible with vs_4_0.
static const String & getDirectionalLightExtruderArbvp1Debug(void)
Get extruder program source for debug directional lights, compatible with arbvp1.
static const String & getDirectionalLightExtruderVs_1_1FiniteDebug(void)
Get FINITE extruder program source for debug directional lights, compatible with vs_1_1.
static const String & getPointLightExtruderArbvp1(void)
Get extruder program source for point lights, compatible with arbvp1.
static const String & getPointLightExtruderVs_glslFiniteDebug(void)
Get extruder program source for debug point lights, compatible with glsl.
static const String & getDirectionalLightExtruderVs_glslFinite(void)
Get FINITE extruder program source for directional lights, compatible with glsl.
static const String & getDirectionalLightExtruderVs_1_1Debug(void)
Get extruder program source for debug directional lights, compatible with vs_1_1.
static void initialise(void)
Initialise the creation of these vertex programs.
static const String & getDirectionalLightExtruderVs_4_0(void)
Get extruder program source for directional lights, compatible with vs_4_0.
static const String & getDirectionalLightExtruderVs_glslesFiniteDebug(void)
Get FINITE extruder program source for debug directional lights, compatible with glsles.
static const String & getPointLightExtruderVs_glslesDebug(void)
Get extruder program source for debug point lights, compatible with glsles.
static const String & getDirectionalLightExtruderVs_glslDebug(void)
Get extruder program source for debug directional lights, compatible with glsl.
static const String & getDirectionalLightExtruderVs_glslesDebug(void)
Get extruder program source for debug directional lights, compatible with glsles.
static const String & getDirectionalLightExtruderVs_glslesFinite(void)
Get FINITE extruder program source for directional lights, compatible with glsles.
static const String & getDirectionalLightExtruderArbvp1FiniteDebug(void)
Get FINITE extruder program source for debug directional lights, compatible with arbvp1.
static const String & getPointLightExtruderVs_glslFinite(void)
Get FINITE extruder program source for point lights, compatible with glsl.
static const String & getDirectionalLightExtruderArbvp1(void)
Get extruder program source for directional lights, compatible with arbvp1.
static void shutdown(void)
Shutdown & destroy the vertex programs.
static const String & getPointLightExtruderVs_glslesFinite(void)
Get FINITE extruder program source for point lights, compatible with glsles.
static const String & getPointLightExtruderArbvp1FiniteDebug(void)
Get FINITE extruder program source for debug point lights, compatible with arbvp1.
static const String & getDirectionalLightExtruderVs_4_0FiniteDebug(void)
Get FINITE extruder program source for debug directional lights, compatible with vs_4_0.
static const String & getProgramSource(Light::LightTypes lightType, const String syntax, bool finite, bool debug)
General purpose method to get any of the program sources.
static const String & getPointLightExtruderVs_glsles(void)
Get extruder program source for point lights, compatible with glsles.
static const String & getPointLightExtruderVs_1_1Debug(void)
Get extruder program source for debug point lights, compatible with vs_1_1.
static const String & getPointLightExtruderVs_1_1FiniteDebug(void)
Get extruder program source for debug point lights, compatible with vs_1_1.
static const String & getDirectionalLightExtruderVs_glslFiniteDebug(void)
Get FINITE extruder program source for debug directional lights, compatible with glsl.
static const String & getPointLightExtruderArbvp1Finite(void)
Get FINITE extruder program source for point lights, compatible with arbvp1.
static const String & getDirectionalLightExtruderVs_1_1Finite(void)
Get FINITE extruder program source for directional lights, compatible with vs_1_1.
static const String & getPointLightExtruderVs_4_0Finite(void)
Get FINITE extruder program source for point lights, compatible with vs_4_0.
static const String & getPointLightExtruderVs_4_0(void)
Get extruder program source for point lights, compatible with vs_4_0.
static const String programNames[OGRE_NUM_SHADOW_EXTRUDER_PROGRAMS]
static const String & getPointLightExtruderVs_glslesFiniteDebug(void)
Get extruder program source for debug point lights, compatible with glsles.
static const String & getDirectionalLightExtruderVs_4_0Finite(void)
Get FINITE extruder program source for directional lights, compatible with vs_4_0.
static const String & getDirectionalLightExtruderVs_glsles(void)
Get extruder program source for directional lights, compatible with glsles.
static const String & getDirectionalLightExtruderVs_glsl(void)
Get extruder program source for directional lights, compatible with glsl.
static const String & getPointLightExtruderVs_1_1(void)
Get extruder program source for point lights, compatible with vs_1_1.
static const String & getDirectionalLightExtruderArbvp1Finite(void)
Get FINITE extruder program source for directional lights, compatible with arbvp1.
SceneCtlAllocatedObject ShadowDataAlloc
_StringBase String