MyGUI  3.2.1
MyGUI_ImageInfo.h
Go to the documentation of this file.
1 /*
2  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3  * Distributed under the MIT License
4  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5  */
6 
7 #ifndef __MYGUI_IMAGE_INFO_H__
8 #define __MYGUI_IMAGE_INFO_H__
9 
10 #include "MyGUI_Prerequest.h"
11 
12 namespace MyGUI
13 {
14 
15  struct ImageItem
16  {
17  public:
19  frame_rate(0)
20  {
21  }
22 
23  public:
24  float frame_rate;
25  std::vector<FloatRect> images;
26  };
27 
28  typedef std::vector<ImageItem> VectorImages;
29 
31  {
32  public:
33  ImageIndexInfo(const std::string& _texture, const IntSize& _size, const float _rate, const std::vector<IntPoint>& _frames) :
34  texture(_texture),
35  size(_size),
36  rate(_rate),
37  frames(_frames)
38  {
39  }
40 
41  public:
42  const std::string& texture;
43  const IntSize& size;
44  const float rate;
45  const std::vector<IntPoint>& frames;
46  };
47 
48 } // namespace MyGUI
49 
50 #endif // __MYGUI_IMAGE_INFO_H__