MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
13
namespace
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
24
struct
MYGUI_EXPORT
ImageIndexInfo
25
{
26
public
:
27
ImageIndexInfo
(
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_
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:22
MyGUI::ImageIndexInfo
Definition
MyGUI_ImageInfo.h:25
MyGUI::ImageIndexInfo::texture
std::string_view texture
Definition
MyGUI_ImageInfo.h:40
MyGUI::ImageIndexInfo::ImageIndexInfo
ImageIndexInfo(std::string_view _texture, const IntSize &_size, const float _rate, const std::vector< IntPoint > &_frames)
Definition
MyGUI_ImageInfo.h:27
MyGUI::ImageIndexInfo::size
const IntSize & size
Definition
MyGUI_ImageInfo.h:41
MyGUI::ImageIndexInfo::rate
const float rate
Definition
MyGUI_ImageInfo.h:42
MyGUI::ImageIndexInfo::frames
const std::vector< IntPoint > & frames
Definition
MyGUI_ImageInfo.h:43
MyGUI::ImageItem
Definition
MyGUI_ImageInfo.h:17
MyGUI::ImageItem::frame_rate
float frame_rate
Definition
MyGUI_ImageInfo.h:18
MyGUI::ImageItem::images
std::vector< FloatRect > images
Definition
MyGUI_ImageInfo.h:19
MyGUI::types::TSize< int >
Generated by
1.12.0