MyGUI 3.4.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#include "MyGUI_Types.h"
12
13namespace MyGUI
14{
15
16 struct ImageItem
17 {
18 public:
20 frame_rate(0)
21 {
22 }
23
24 public:
26 std::vector<FloatRect> images;
27 };
28
29 typedef std::vector<ImageItem> VectorImages;
30
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_
#define MYGUI_EXPORT
std::vector< ImageItem > VectorImages
const std::string & texture
ImageIndexInfo(const std::string &_texture, const IntSize &_size, const float _rate, const std::vector< IntPoint > &_frames)
const IntSize & size
const std::vector< IntPoint > & frames
std::vector< FloatRect > images