PERRY
v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
project
libraries
system
type.hpp
1
14
15
#ifndef TYPE_HPP_
16
#define TYPE_HPP_
17
18
#ifdef _WIN32
19
#define OS "Windows"
20
#elif __APPLE__
21
#define OS "macOS"
22
#include <sys/types.h>
23
#include <string>
24
#include <iostream>
25
//use __int32_t
26
//use float
27
#else
//if __linux__
28
#define OS "Linux"
29
#include <sys/types.h>
30
#include <string>
31
#include <iostream>
32
#endif
33
34
#include <vector>
35
36
namespace
type {
37
38
#define __v1i_t __int32_t
39
#define __v1f_t float
40
41
//int32
42
typedef
struct
__v2u_s
{
43
__uint32_t x;
44
__uint32_t y;
45
} __v2u_t;
46
47
typedef
struct
__v3u_s
{
48
__uint32_t x;
49
__uint32_t y;
50
__uint32_t z;
51
} __v3u_t;
52
53
typedef
struct
__v4u_s
{
54
__uint32_t x;
55
__uint32_t y;
56
__uint32_t w;
57
__uint32_t h;
58
} __v4u_t;
59
60
typedef
struct
__v2i_s
{
61
__int32_t x;
62
__int32_t y;
63
} __v2i_t;
64
65
typedef
struct
__v3i_s
{
66
__int32_t x;
67
__int32_t y;
68
__int32_t z;
69
} __v3i_t;
70
71
typedef
struct
__v4i_s
{
72
__int32_t x;
73
__int32_t y;
74
__int32_t w;
75
__int32_t h;
76
} __v4i_t;
77
78
//double
79
typedef
struct
__v2f_s
{
80
double
x;
81
double
y;
82
} __v2f_t;
83
84
typedef
struct
__v3f_s
{
85
double
x;
86
double
y;
87
double
z;
88
} __v3f_t;
89
90
typedef
struct
__v4f_s
{
91
double
x;
92
double
y;
93
double
w;
94
double
h;
95
} __v4f_t;
96
97
typedef
struct
__color_s
{
98
double
r;
99
double
g;
100
double
b;
101
double
a;
102
} __color_t;
103
104
typedef
struct
__zone_s
{
105
double
top;
106
double
left;
107
double
front;
108
double
bottom;
109
double
right;
110
double
back;
111
} __zone_t;
112
113
typedef
struct
_quaternion_s
{
114
double
x;
115
double
y;
116
double
z;
117
double
w;
118
} _quaternion_t;
119
120
}
// namespace type
121
122
#endif
/* !TYPE_HPP_ */
type::__color_s
Definition
type.hpp:97
type::__v2f_s
Definition
type.hpp:79
type::__v2i_s
Definition
type.hpp:60
type::__v2u_s
Definition
type.hpp:42
type::__v3f_s
Definition
type.hpp:84
type::__v3i_s
Definition
type.hpp:65
type::__v3u_s
Definition
type.hpp:47
type::__v4f_s
Definition
type.hpp:90
type::__v4i_s
Definition
type.hpp:71
type::__v4u_s
Definition
type.hpp:53
type::__zone_s
Definition
type.hpp:104
type::_quaternion_s
Definition
type.hpp:113
Generated by
1.13.2