MyGUI 3.0.1
|
00001 00007 /* 00008 This file is part of MyGUI. 00009 00010 MyGUI is free software: you can redistribute it and/or modify 00011 it under the terms of the GNU Lesser General Public License as published by 00012 the Free Software Foundation, either version 3 of the License, or 00013 (at your option) any later version. 00014 00015 MyGUI is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU Lesser General Public License for more details. 00019 00020 You should have received a copy of the GNU Lesser General Public License 00021 along with MyGUI. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 #ifndef __MYGUI_RAW_RECT_H__ 00024 #define __MYGUI_RAW_RECT_H__ 00025 00026 #include "MyGUI_Prerequest.h" 00027 #include "MyGUI_Colour.h" 00028 #include "MyGUI_XmlDocument.h" 00029 #include "MyGUI_Types.h" 00030 #include "MyGUI_ICroppedRectangle.h" 00031 #include "MyGUI_SubSkin.h" 00032 #include "MyGUI_RenderFormat.h" 00033 00034 namespace MyGUI 00035 { 00036 00037 class MYGUI_EXPORT RawRect : public SubSkin 00038 { 00039 MYGUI_RTTI_DERIVED( RawRect ) 00040 00041 public: 00042 RawRect(); 00043 virtual ~RawRect(); 00044 00045 virtual void setAlpha(float _alpha); 00046 00047 void setRectColour(const Colour& _colourLT, const Colour& _colourRT, const Colour& _colourLB, const Colour& _colourRB); 00048 00049 void setRectTexture(const FloatPoint& _pointLT, const FloatPoint& _pointRT, const FloatPoint& _pointLB, const FloatPoint& _pointRB); 00050 00051 virtual void setStateData(IStateInfo * _data); 00052 00053 // метод для отрисовки себя 00054 virtual void doRender(); 00055 00056 private: 00057 FloatPoint mRectTextureLT; 00058 FloatPoint mRectTextureRT; 00059 FloatPoint mRectTextureLB; 00060 FloatPoint mRectTextureRB; 00061 00062 Colour mColourLT; 00063 Colour mColourRT; 00064 Colour mColourLB; 00065 Colour mColourRB; 00066 00067 uint32 mRenderColourLT; 00068 uint32 mRenderColourRT; 00069 uint32 mRenderColourLB; 00070 uint32 mRenderColourRB; 00071 00072 VertexColourType mVertexFormat; 00073 }; 00074 00075 } // namespace MyGUI 00076 00077 #endif // __MYGUI_RAW_RECT_H__