Covellite++  Version: 2.3.0 Revision: ??? Platform: x64 Build: 23:13 04.01.2025
Кроссплатформенный фреймворк для разработки приложений на С++
Загрузка...
Поиск...
Не найдено
Defines.hpp
1
2#pragma once
3#include <vector>
4#include <boost/any.hpp>
5#include <Covellite/Api/Renders.hpp>
6
7namespace boost { class any; }
8
9namespace basement
10{
11
12using Id_t = size_t;
13using Objects_t = ::std::vector<Id_t>;
14using Component_t = ::covellite::api::Component;
15using ComponentPtr_t = Component_t::ComponentPtr_t;
16using Object_t = ::std::vector<Component_t::ComponentPtr_t>;
17using Renders_t = Component_t::Renders::Renders_t;
18using RendersPtr_t = ::std::shared_ptr<Component_t::Renders>;
19using Any_t = ::boost::any;
20
21namespace support { class GameScene; }
22
23using GameScenePtr_t = ::std::shared_ptr<support::GameScene>;
24
25class Point final
26{
27public:
28 inline Point operator + (const Point & _Point) const
29 {
30 return Point{ x + _Point.x, y + _Point.y, z + _Point.z };
31 }
32
33public:
34 const float x;
35 const float y;
36 const float z;
37
38public:
39 explicit Point(
40 const float _X = 0.0f,
41 const float _Y = 0.0f,
42 const float _Z = 0.0f) :
43 x(_X),
44 y(_Y),
45 z(_Z)
46 {
47
48 }
49};
50
51class Rect final
52{
53public:
54 float left, top, right, bottom;
55};
56
57class Cursor final
58{
59public:
60 int32_t X = 0, Y = 0;
61 float WindowX = 1, WindowY = 1;
62 bool IsClick = false;
63};
64
65} // namespace basement
Definition Common.hpp:10
Класс входит в проект Covellite.Api Класс компонента.
Definition Component.hpp:35