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
OgreQuake3Shader.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
9
Permission is hereby granted, free of charge, to any person obtaining a copy
10
of this software and associated documentation files (the "Software"), to deal
11
in the Software without restriction, including without limitation the rights
12
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
copies of the Software, and to permit persons to whom the Software is
14
furnished to do so, subject to the following conditions:
15
16
The above copyright notice and this permission notice shall be included in
17
all copies or substantial portions of the Software.
18
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
THE SOFTWARE.
26
-----------------------------------------------------------------------------
27
*/
28
#ifndef __QUAKE3SHADER_H__
29
#define __QUAKE3SHADER_H__
30
31
#include "
OgreResource.h
"
32
#include "
OgreBspPrerequisites.h
"
33
#include "
OgreQuake3Types.h
"
34
#include "
OgreCommon.h
"
35
#include "
OgreColourValue.h
"
36
#include "
OgreBlendMode.h
"
37
#include "
OgreTextureUnitState.h
"
38
39
namespace
Ogre {
40
41
50
class
Quake3Shader
:
public
ResourceAlloc
51
{
52
protected
:
53
String
getAlternateName
(
const
String
& texName);
54
String
mName
;
55
56
public
:
57
59
Quake3Shader
(
const
String
& name);
60
~Quake3Shader
();
61
66
MaterialPtr
createAsMaterial
(
int
lightmapNumber);
67
68
struct
Pass
{
69
unsigned
int
flags
;
70
String
textureName
;
71
TexGen
texGen
;
72
// Multitexture blend
73
LayerBlendOperation
blend
;
74
// Multipass blends (Quake3 only supports multipass?? Surely not?)
75
SceneBlendFactor
blendSrc
;
76
SceneBlendFactor
blendDest
;
77
bool
customBlend
;
78
CompareFunction
depthFunc
;
79
TextureUnitState::TextureAddressingMode
addressMode
;
80
// TODO - alphaFunc
81
GenFunc
rgbGenFunc
;
82
WaveType
rgbGenWave
;
83
Real
rgbGenParams
[4];
// base, amplitude, phase, frequency
84
Real
tcModScale
[2];
85
Real
tcModRotate
;
86
Real
tcModScroll
[2];
87
Real
tcModTransform
[6];
88
bool
tcModTurbOn
;
89
Real
tcModTurb
[4];
90
WaveType
tcModStretchWave
;
91
Real
tcModStretchParams
[4];
// base, amplitude, phase, frequency
92
CompareFunction
alphaFunc
;
93
unsigned
char
alphaVal
;
94
95
Real
animFps
;
96
unsigned
int
animNumFrames
;
97
String
frames
[32];
98
};
99
100
unsigned
int
flags
;
101
int
numPasses
;
102
typedef
vector<Pass>::type
PassList
;
103
PassList
pass
;
104
bool
farbox
;
// Skybox
105
String
farboxName
;
106
bool
skyDome
;
107
Real
cloudHeight
;
// Skydome
108
DeformFunc
deformFunc
;
109
Real
deformParams
[5];
110
ManualCullingMode
cullMode
;
111
112
bool
fog
;
113
ColourValue
fogColour
;
114
Real
fogDistance
;
115
116
};
117
}
118
119
#endif
Ogre::Quake3Shader::mName
String mName
Definition:
OgreQuake3Shader.h:54
Ogre::Quake3Shader::numPasses
int numPasses
Definition:
OgreQuake3Shader.h:101
Ogre::Quake3Shader::farboxName
String farboxName
Definition:
OgreQuake3Shader.h:105
Ogre::ManualCullingMode
ManualCullingMode
Manual culling modes based on vertex normals.
Definition:
OgreCommon.h:151
Ogre::Real
float Real
Software floating point type.
Definition:
OgrePrerequisites.h:75
Ogre::Quake3Shader::fogColour
ColourValue fogColour
Definition:
OgreQuake3Shader.h:113
Ogre::Quake3Shader::flags
unsigned int flags
Definition:
OgreQuake3Shader.h:100
Ogre::Quake3Shader::getAlternateName
String getAlternateName(const String &texName)
Ogre::Quake3Shader::Pass::rgbGenParams
Real rgbGenParams[4]
Definition:
OgreQuake3Shader.h:83
GenFunc
GenFunc
Definition:
OgreQuake3Types.h:118
OgreBlendMode.h
Ogre::Quake3Shader::Pass::tcModStretchWave
WaveType tcModStretchWave
Definition:
OgreQuake3Shader.h:90
Ogre::ColourValue
Class representing colour.
Definition:
OgreColourValue.h:57
Ogre::Quake3Shader::Pass::tcModStretchParams
Real tcModStretchParams[4]
Definition:
OgreQuake3Shader.h:91
Ogre::Quake3Shader::Pass::flags
unsigned int flags
Definition:
OgreQuake3Shader.h:69
Ogre::Quake3Shader::Pass::customBlend
bool customBlend
Definition:
OgreQuake3Shader.h:77
Ogre::Quake3Shader::Pass::alphaFunc
CompareFunction alphaFunc
Definition:
OgreQuake3Shader.h:92
Ogre::Quake3Shader::fogDistance
Real fogDistance
Definition:
OgreQuake3Shader.h:114
Ogre::Quake3Shader::Pass::textureName
String textureName
Definition:
OgreQuake3Shader.h:70
Ogre::SceneBlendFactor
SceneBlendFactor
Blending factors for manually blending objects with the scene.
Definition:
OgreBlendMode.h:234
Ogre::Quake3Shader::Pass::blend
LayerBlendOperation blend
Definition:
OgreQuake3Shader.h:73
OgreCommon.h
Ogre::Quake3Shader::PassList
vector< Pass >::type PassList
Definition:
OgreQuake3Shader.h:102
OgreQuake3Types.h
Ogre::Quake3Shader::Pass::animFps
Real animFps
Definition:
OgreQuake3Shader.h:95
Ogre::Quake3Shader::skyDome
bool skyDome
Definition:
OgreQuake3Shader.h:106
Ogre::Quake3Shader::Pass
Definition:
OgreQuake3Shader.h:68
Ogre::LayerBlendOperation
LayerBlendOperation
List of valid texture blending operations, for use with TextureUnitState::setColourOperation.
Definition:
OgreBlendMode.h:57
OgreResource.h
Ogre::Quake3Shader::deformParams
Real deformParams[5]
Definition:
OgreQuake3Shader.h:109
Ogre::Quake3Shader::~Quake3Shader
~Quake3Shader()
Ogre::Quake3Shader::cloudHeight
Real cloudHeight
Definition:
OgreQuake3Shader.h:107
Ogre::Quake3Shader::Pass::tcModTurbOn
bool tcModTurbOn
Definition:
OgreQuake3Shader.h:88
Ogre::Quake3Shader::Pass::texGen
TexGen texGen
Definition:
OgreQuake3Shader.h:71
Ogre::Quake3Shader::Pass::blendSrc
SceneBlendFactor blendSrc
Definition:
OgreQuake3Shader.h:75
Ogre::Quake3Shader::Pass::addressMode
TextureUnitState::TextureAddressingMode addressMode
Definition:
OgreQuake3Shader.h:79
Ogre::TextureUnitState::TextureAddressingMode
TextureAddressingMode
Texture addressing modes - default is TAM_WRAP.
Definition:
OgreTextureUnitState.h:125
Ogre::Quake3Shader::Pass::tcModRotate
Real tcModRotate
Definition:
OgreQuake3Shader.h:85
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition:
OgreMemoryAllocatedObject.h:57
Ogre::vector
Definition:
OgrePrerequisites.h:467
Ogre::Quake3Shader::Pass::alphaVal
unsigned char alphaVal
Definition:
OgreQuake3Shader.h:93
Ogre::Quake3Shader::Pass::tcModTurb
Real tcModTurb[4]
Definition:
OgreQuake3Shader.h:89
Ogre::Quake3Shader::Pass::blendDest
SceneBlendFactor blendDest
Definition:
OgreQuake3Shader.h:76
Ogre::Quake3Shader::Pass::tcModTransform
Real tcModTransform[6]
Definition:
OgreQuake3Shader.h:87
Ogre::Quake3Shader::Pass::rgbGenWave
WaveType rgbGenWave
Definition:
OgreQuake3Shader.h:82
Ogre::Quake3Shader::pass
PassList pass
Definition:
OgreQuake3Shader.h:103
Ogre::Quake3Shader::Pass::rgbGenFunc
GenFunc rgbGenFunc
Definition:
OgreQuake3Shader.h:81
Ogre::Quake3Shader::Pass::animNumFrames
unsigned int animNumFrames
Definition:
OgreQuake3Shader.h:96
TexGen
TexGen
Definition:
OgreQuake3Types.h:125
Ogre::Quake3Shader::deformFunc
DeformFunc deformFunc
Definition:
OgreQuake3Shader.h:108
Ogre::Quake3Shader::Pass::tcModScale
Real tcModScale[2]
Definition:
OgreQuake3Shader.h:84
Ogre::Quake3Shader::Pass::tcModScroll
Real tcModScroll[2]
Definition:
OgreQuake3Shader.h:86
WaveType
WaveType
Definition:
OgreQuake3Types.h:107
Ogre::Quake3Shader::createAsMaterial
MaterialPtr createAsMaterial(int lightmapNumber)
Creates this shader as an OGRE material.
Ogre::String
_StringBase String
Definition:
OgrePrerequisites.h:447
Ogre::Quake3Shader::Quake3Shader
Quake3Shader(const String &name)
Default constructor - used by Quake3ShaderManager (do not call directly)
Ogre::MaterialPtr
Specialisation of SharedPtr to allow SharedPtr to be assigned to MaterialPtr.
Definition:
OgreMaterial.h:677
Ogre::Quake3Shader::Pass::depthFunc
CompareFunction depthFunc
Definition:
OgreQuake3Shader.h:78
OgreTextureUnitState.h
Ogre::CompareFunction
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
Definition:
OgreCommon.h:65
Ogre::Quake3Shader::farbox
bool farbox
Definition:
OgreQuake3Shader.h:104
DeformFunc
DeformFunc
Definition:
OgreQuake3Types.h:132
OgreColourValue.h
Ogre::Quake3Shader::Pass::frames
String frames[32]
Definition:
OgreQuake3Shader.h:97
Ogre::Quake3Shader::cullMode
ManualCullingMode cullMode
Definition:
OgreQuake3Shader.h:110
Ogre::Quake3Shader::fog
bool fog
Definition:
OgreQuake3Shader.h:112
OgreBspPrerequisites.h
Ogre::Quake3Shader
Class for recording Quake3 shaders.
Definition:
OgreQuake3Shader.h:50
Plugins
BSPSceneManager
include
OgreQuake3Shader.h
Generated on Fri Jun 20 2014 01:03:16 for OGRE by
1.8.7