Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OgrePanelOverlayElement.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 
00026 #ifndef __PanelOverlayElement_H__
00027 #define __PanelOverlayElement_H__
00028 
00029 #include "OgreOverlayContainer.h"
00030 
00031 namespace Ogre {
00032 
00033 
00049     class _OgreExport PanelOverlayElement : public OverlayContainer
00050     {
00051     public:
00053         PanelOverlayElement(const String& name);
00054         virtual ~PanelOverlayElement();
00055 
00057         virtual void initialise(void);
00058 
00065         void setTiling(Real x, Real y, ushort layer = 0);
00066 
00067         Real getTileX(ushort layer = 0) const;
00072         Real getTileY(ushort layer = 0) const;
00073 
00077         void setTransparent(bool isTransparent);
00078 
00080         bool isTransparent(void) const;
00081 
00083         virtual const String& getTypeName(void) const;
00085         void getRenderOperation(RenderOperation& op);
00087         void setMaterialName(const String& matName);
00089         void _updateRenderQueue(RenderQueue* queue);
00090 
00091 
00093         class _OgrePrivate CmdTiling : public ParamCommand
00094         {
00095         public:
00096             String doGet(const void* target) const;
00097             void doSet(void* target, const String& val);
00098         };
00100         class _OgrePrivate CmdTransparent : public ParamCommand
00101         {
00102         public:
00103             String doGet(const void* target) const;
00104             void doSet(void* target, const String& val);
00105         };
00106     protected:
00107         // Flag indicating if this panel should be visual or just group things
00108         bool mTransparent;
00109         // Texture tiling
00110         Real mTileX[OGRE_MAX_TEXTURE_LAYERS];
00111         Real mTileY[OGRE_MAX_TEXTURE_LAYERS];
00112         size_t mNumTexCoordsInBuffer;
00113 
00114         RenderOperation mRenderOp;
00115 
00117         virtual void updatePositionGeometry(void);
00118 
00120         virtual void updateTextureGeometry(void);
00121 
00123         void addBaseParameters(void);
00124 
00125 
00126         static String msTypeName;
00127 
00128 
00129         // Command objects
00130         static CmdTiling msCmdTiling;
00131         static CmdTransparent msCmdTransparent;
00132 
00133         
00134 
00135     };
00136 
00137 
00138 }
00139 
00140 #endif

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 12:59:49 2006