MyGUI  3.2.1
MyGUI_ImageInfo.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_IMAGE_INFO_H__
00008 #define __MYGUI_IMAGE_INFO_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 
00012 namespace MyGUI
00013 {
00014 
00015     struct ImageItem
00016     {
00017     public:
00018         ImageItem() :
00019             frame_rate(0)
00020         {
00021         }
00022 
00023     public:
00024         float frame_rate;
00025         std::vector<FloatRect> images;
00026     };
00027 
00028     typedef std::vector<ImageItem> VectorImages;
00029 
00030     struct MYGUI_EXPORT ImageIndexInfo
00031     {
00032     public:
00033         ImageIndexInfo(const std::string& _texture, const IntSize& _size, const float _rate, const std::vector<IntPoint>& _frames) :
00034             texture(_texture),
00035             size(_size),
00036             rate(_rate),
00037             frames(_frames)
00038         {
00039         }
00040 
00041     public:
00042         const std::string& texture;
00043         const IntSize& size;
00044         const float rate;
00045         const std::vector<IntPoint>& frames;
00046     };
00047 
00048 } // namespace MyGUI
00049 
00050 #endif // __MYGUI_IMAGE_INFO_H__