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-2005 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This program is free software; you can redistribute it and/or modify it under 00011 the terms of the GNU Lesser General Public License as published by the Free Software 00012 Foundation; either version 2 of the License, or (at your option) any later 00013 version. 00014 00015 This program is distributed in the hope that it will be useful, but WITHOUT 00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License along with 00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00022 http://www.gnu.org/copyleft/lesser.txt. 00023 ----------------------------------------------------------------------------- 00024 */ 00025 #ifndef __CompositionTargetPass_H__ 00026 #define __CompositionTargetPass_H__ 00027 00028 #include "OgrePrerequisites.h" 00029 #include "OgreIteratorWrappers.h" 00030 00031 namespace Ogre { 00035 class _OgreExport CompositionTargetPass 00036 { 00037 public: 00038 CompositionTargetPass(CompositionTechnique *parent); 00039 ~CompositionTargetPass(); 00040 00043 enum InputMode 00044 { 00045 IM_NONE, // No input 00046 IM_PREVIOUS // Output of previous Composition in chain 00047 }; 00048 typedef std::vector<CompositionPass *> Passes; 00049 typedef VectorIterator<Passes> PassIterator; 00050 00053 void setInputMode(InputMode mode); 00055 InputMode getInputMode() const; 00056 00058 void setOutputName(const String &out); 00060 const String &getOutputName() const; 00061 00065 void setOnlyInitial(bool value); 00068 bool getOnlyInitial(); 00069 00072 void setVisibilityMask(uint32 mask); 00075 uint32 getVisibilityMask(); 00076 00083 void setMaterialScheme(const String& schemeName); 00090 const String& getMaterialScheme(void) const; 00091 00095 void setLodBias(float bias); 00098 float getLodBias(); 00099 00102 CompositionPass *createPass(); 00105 void removePass(size_t idx); 00108 CompositionPass *getPass(size_t idx); 00111 size_t getNumPasses(); 00112 00115 void removeAllPasses(); 00116 00118 PassIterator getPassIterator(void); 00119 00121 CompositionTechnique *getParent(); 00122 private: 00124 CompositionTechnique *mParent; 00126 InputMode mInputMode; 00128 String mOutputName; 00130 Passes mPasses; 00133 bool mOnlyInitial; 00135 uint32 mVisibilityMask; 00137 float mLodBias; 00139 String mMaterialScheme; 00140 }; 00141 00142 } 00143 00144 #endif
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:37:38 2006