OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OgreCompositionTargetPass.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 __CompositionTargetPass_H__
29 #define __CompositionTargetPass_H__
30 
31 #include "OgrePrerequisites.h"
32 #include "OgreIteratorWrappers.h"
33 
34 namespace Ogre {
45  {
46  public:
49 
52  enum InputMode
53  {
54  IM_NONE, // No input
55  IM_PREVIOUS // Output of previous Composition in chain
56  };
59 
62  void setInputMode(InputMode mode);
64  InputMode getInputMode() const;
65 
67  void setOutputName(const String &out);
69  const String &getOutputName() const;
70 
74  void setOnlyInitial(bool value);
77  bool getOnlyInitial();
78 
81  void setVisibilityMask(uint32 mask);
84  uint32 getVisibilityMask();
85 
92  void setMaterialScheme(const String& schemeName);
99  const String& getMaterialScheme(void) const;
100 
106  void setShadowsEnabled(bool enabled);
112  bool getShadowsEnabled(void) const;
116  void setLodBias(float bias);
119  float getLodBias();
120 
123  CompositionPass *createPass();
126  void removePass(size_t idx);
129  CompositionPass *getPass(size_t idx);
132  size_t getNumPasses();
133 
136  void removeAllPasses();
137 
139  PassIterator getPassIterator(void);
140 
142  CompositionTechnique *getParent();
143 
146  bool _isSupported(void);
147 
148  private:
163  float mLodBias;
168  };
169 
172 }
173 
174 #endif
CompositionTechnique * mParent
Parent technique.
unsigned int uint32
Definition: OgrePlatform.h:246
#define _OgreExport
Definition: OgrePlatform.h:203
String mOutputName
(local) output texture
Object representing one pass or operation in a composition sequence.
VectorIterator< Passes > PassIterator
vector< CompositionPass * >::type Passes
String mMaterialScheme
Material scheme name.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Base composition technique, can be subclassed in plugins.
InputMode
Input mode of a TargetPass.
uint32 mVisibilityMask
Visibility mask for this render.
_StringBase String
Concrete IteratorWrapper for nonconst access to the underlying container.
float mLodBias
LOD bias of this render.
bool mOnlyInitial
This target pass is only executed initially after the effect has been enabled.
Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework...