MyGUI  3.0.1
MyGUI_RawRect.h
Go to the documentation of this file.
1 
7 /*
8  This file is part of MyGUI.
9 
10  MyGUI is free software: you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MyGUI is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
22 */
23 #ifndef __MYGUI_RAW_RECT_H__
24 #define __MYGUI_RAW_RECT_H__
25 
26 #include "MyGUI_Prerequest.h"
27 #include "MyGUI_Colour.h"
28 #include "MyGUI_XmlDocument.h"
29 #include "MyGUI_Types.h"
31 #include "MyGUI_SubSkin.h"
32 #include "MyGUI_RenderFormat.h"
33 
34 namespace MyGUI
35 {
36 
37  class MYGUI_EXPORT RawRect : public SubSkin
38  {
40 
41  public:
42  RawRect();
43  virtual ~RawRect();
44 
45  virtual void setAlpha(float _alpha);
46 
47  void setRectColour(const Colour& _colourLT, const Colour& _colourRT, const Colour& _colourLB, const Colour& _colourRB);
48 
49  void setRectTexture(const FloatPoint& _pointLT, const FloatPoint& _pointRT, const FloatPoint& _pointLB, const FloatPoint& _pointRB);
50 
51  virtual void setStateData(IStateInfo * _data);
52 
53  // метод для отрисовки себя
54  virtual void doRender();
55 
56  private:
57  FloatPoint mRectTextureLT;
58  FloatPoint mRectTextureRT;
59  FloatPoint mRectTextureLB;
60  FloatPoint mRectTextureRB;
61 
62  Colour mColourLT;
63  Colour mColourRT;
64  Colour mColourLB;
65  Colour mColourRB;
66 
67  uint32 mRenderColourLT;
68  uint32 mRenderColourRT;
69  uint32 mRenderColourLB;
70  uint32 mRenderColourRB;
71 
72  VertexColourType mVertexFormat;
73  };
74 
75 } // namespace MyGUI
76 
77 #endif // __MYGUI_RAW_RECT_H__