MyGUI 3.4.3
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 float frame_rate{0};
19 std::vector<FloatRect> images;
20 };
21
22 using VectorImages = std::vector<ImageItem>;
23
25 {
26 public:
28 std::string_view _texture,
29 const IntSize& _size,
30 const float _rate,
31 const std::vector<IntPoint>& _frames) :
32 texture(_texture),
33 size(_size),
34 rate(_rate),
35 frames(_frames)
36 {
37 }
38
39 public:
40 std::string_view texture;
41 const IntSize& size;
42 const float rate;
43 const std::vector<IntPoint>& frames;
44 };
45
46} // namespace MyGUI
47
48#endif // MYGUI_IMAGE_INFO_H_
#define MYGUI_EXPORT
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
std::vector< ImageItem > VectorImages
std::string_view texture
ImageIndexInfo(std::string_view _texture, const IntSize &_size, const float _rate, const std::vector< IntPoint > &_frames)
const std::vector< IntPoint > & frames
std::vector< FloatRect > images