MyGUI 3.2.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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:
18 ImageItem() :
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
30 struct MYGUI_EXPORT ImageIndexInfo
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_
MyGUI::ImageItem::frame_rate
float frame_rate
Definition: MyGUI_ImageInfo.h:24
MyGUI_Prerequest.h
MyGUI::ImageIndexInfo::size
const IntSize & size
Definition: MyGUI_ImageInfo.h:43
MyGUI::types::TSize< int >
MyGUI::ImageIndexInfo::rate
const float rate
Definition: MyGUI_ImageInfo.h:44
MyGUI::ImageIndexInfo::ImageIndexInfo
ImageIndexInfo(const std::string &_texture, const IntSize &_size, const float _rate, const std::vector< IntPoint > &_frames)
Definition: MyGUI_ImageInfo.h:33
MyGUI::ImageItem
Definition: MyGUI_ImageInfo.h:15
MyGUI::VectorImages
std::vector< ImageItem > VectorImages
Definition: MyGUI_ImageInfo.h:28
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI::ImageIndexInfo
Definition: MyGUI_ImageInfo.h:30
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI::ImageItem::images
std::vector< FloatRect > images
Definition: MyGUI_ImageInfo.h:25
MyGUI::ImageIndexInfo::texture
const std::string & texture
Definition: MyGUI_ImageInfo.h:42
MyGUI::ImageItem::ImageItem
ImageItem()
Definition: MyGUI_ImageInfo.h:18
MyGUI::ImageIndexInfo::frames
const std::vector< IntPoint > & frames
Definition: MyGUI_ImageInfo.h:45