# OgreCompositionTargetPass.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-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
    00125         bool _isSupported(void);
    00126
    00127     private:
    00129         CompositionTechnique *mParent;
    00131         InputMode mInputMode;
    00133         String mOutputName;
    00135         Passes mPasses;
    00138         bool mOnlyInitial;
    00140         uint32 mVisibilityMask;
    00142         float mLodBias;
    00144         String mMaterialScheme;
    00145     };
    00146
    00147 }
    00148
    00149 #endif

Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 17 15:39:07 2006