MyGUI: MyGUI_ImageInfo.h Source File

MyGUI 3.4.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#include "MyGUI_Types.h"
12
13namespace MyGUI
14{
15
16 struct ImageItem
17 {
18 public:
19 ImageItem() :
20 frame_rate(0)
21 {
22 }
23
24 public:
25 float frame_rate;
26 std::vector<FloatRect> images;
27 };
28
29 typedef std::vector<ImageItem> VectorImages;
30
31 struct MYGUI_EXPORT ImageIndexInfo
32 {
33 public:
34 ImageIndexInfo(const std::string& _texture, const IntSize& _size, const float _rate, const std::vector<IntPoint>& _frames) :
35 texture(_texture),
36 size(_size),
37 rate(_rate),
38 frames(_frames)
39 {
40 }
41
42 public:
43 const std::string& texture;
44 const IntSize& size;
45 const float rate;
46 const std::vector<IntPoint>& frames;
47 };
48
49} // namespace MyGUI
50
51#endif // MYGUI_IMAGE_INFO_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Types.h
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::VectorImages
std::vector< ImageItem > VectorImages
Definition MyGUI_ImageInfo.h:29
MyGUI::ImageIndexInfo
Definition MyGUI_ImageInfo.h:32
MyGUI::ImageIndexInfo::texture
const std::string & texture
Definition MyGUI_ImageInfo.h:43
MyGUI::ImageIndexInfo::ImageIndexInfo
ImageIndexInfo(const std::string &_texture, const IntSize &_size, const float _rate, const std::vector< IntPoint > &_frames)
Definition MyGUI_ImageInfo.h:34
MyGUI::ImageIndexInfo::size
const IntSize & size
Definition MyGUI_ImageInfo.h:44
MyGUI::ImageIndexInfo::rate
const float rate
Definition MyGUI_ImageInfo.h:45
MyGUI::ImageIndexInfo::frames
const std::vector< IntPoint > & frames
Definition MyGUI_ImageInfo.h:46
MyGUI::ImageItem
Definition MyGUI_ImageInfo.h:17
MyGUI::ImageItem::frame_rate
float frame_rate
Definition MyGUI_ImageInfo.h:25
MyGUI::ImageItem::ImageItem
ImageItem()
Definition MyGUI_ImageInfo.h:19
MyGUI::ImageItem::images
std::vector< FloatRect > images
Definition MyGUI_ImageInfo.h:26
MyGUI::types::TSize< int >