GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Common.hh
Go to the documentation of this file.
1#ifndef __clang__
2#define IMPORT
3#define EXPORT
4#else
5#ifdef GAMEAPI_COMPILATION
6#define IMPORT __declspec(dllexport)
7#define EXPORT __declspec(dllexport)
8#else
9#define IMPORT
10#define EXPORT
11#endif
12#endif
13#include <map>
14
15#include "../Buffer.hh"
16#include "../EffectI.hh"
17#include "../GraphI.hh"
18
19namespace GameApi {
20
21 struct H { int id; };
22 struct FBU { int id; };
23 struct FML { int id; };
24 struct CG { int id; };
25 struct INP { int id; };
26 struct IBM { int id; };
27 struct DS { int id; };
28 struct SBM { int id; };
29 struct PN { int id; };
30 struct DC { int id; };
31 struct CBB { int id; };
32 struct CFB { int id; };
33 struct SI { int id; };
34 struct PLP { int id; };
35 struct PLL { int id; };
36 struct PLF { int id; };
37 struct PR { int id; };
38 struct CMD { int id; };
39 struct FI { int id; };
40 struct SD { int id; };
41 struct GI { int id; };
42 struct FF { int id; };
43 struct IF { int id; };
44 struct PF { int id; };
45 struct SF { int id; };
46 struct ARR { int id; };
47 struct PAR { int id; }; // P array
48 struct CPP { int id; };
49 struct PTT { int id; };
50 struct KF { int id; };
51 struct BLK { int id; };
52 struct RUN { int id; };
53 struct EV { int id; };
54 struct AC { int id; };
55 struct MX { int id; };
56 struct Pa { int id; };
57 struct Va { int id; };
58 struct AS { int id; };
59 struct MC { int id; };
60 struct MS { int id; };
61 struct US { int id; };
62 struct MT { int id; };
63 struct TL { int id; };
64 //struct T { int id; };
65 struct MN { int id; };
66 struct CP { int id; };
67 struct DR { int id; };
68 struct OM { int id; };
69 struct FO { int id; };
70 struct WV { int id; }; // waveform
71 struct BM { int id; }; // bitmap
72 struct BMA { int id; }; // bitmap array
73 struct VBM { int id; }; // vector bitmap
74 struct BB { int id; }; // bool bitmap
75 struct FB { int id; }; // float bitmap
76 struct CBM { int id; }; // continuousbitmap
77 struct SP { int id; }; // space
78 struct SA { int id; }; // separate
79 struct PT { int id; }; // point
80 struct V { int id; }; // vector
81 struct M { float mat[16]; }; // matrix
82 struct LN { int id; }; // timeline
83 struct RM { int id; }; // room
84 struct IS { int id; }; // timed int sequence
85 struct O { int id; }; // 3d object via volumes
86 struct P { int id; }; // 3d object via polygons
87 struct OO { int id; };
88 struct PP { int id; };
89 struct PA { int id; }; // path in 3d space
90 struct LA { int id; }; // loop in 3d space
91 struct TN { int id; }; // tree node
92 struct SH { int id; }; // shader
93 struct C { int id; }; // curve
94 struct CO { int id; }; // color
95 struct F { int id; }; // function or float
96 struct FA { int id; }; // float array
97 struct Ft { int id; }; // font
98 struct VF { int id; }; // vectorfield
99 struct PPT { int id; }; // physics point
100 struct PSP { int id; }; // physics space
101 struct MA { int id; };
102 //struct M { int id; };
103 struct S { int id; }; // surface
104 struct Vb { int id; }; // vbo object
105 //struct L { int id; }; // lighting
106 struct T { int id; }; // time
107 struct E { int id; }; // event
108 struct L { int id; }; // link
109 struct LAY { int id; }; // layout
110 struct MP { int id; }; // mouse plane
111 struct MV { int id; }; // movement
112 struct LL { int id; }; // linkage
113 struct ME { int id; }; // memory
114 struct ST { int id; }; // state
115 struct TY { int id; }; // type
116 struct PS { int id; }; // powerset
117 struct ID { int id; }; // id
118 struct Str { int id; }; // string
119 struct Fi { int id; }; // file
120 struct Op { int id; }; // file operation
121 struct D { int id; }; // directory
122 struct Ht { int id; }; // html
123 struct BF { int id; };
124 struct VA { int id; }; // vertex array
125 struct VAA { int id; }; // vertex array array
126 struct VX { int id; }; // voxel
127 struct PL { int id; }; // plane
128 struct PLA { int id; }; // planearray
129 struct TX { int id; }; // texture
130 struct TXID { int id; }; // texture id
131 struct TXA { int id; }; // texture array id
132 struct TR { int id; }; // time range
133 struct VV { int id; }; // time range vertex array
134 struct Q { int id; }; // quad texture coordinates
135 struct DO { int id; };
136 struct PC { int id; };
137 struct SV { int id; };
138 struct FOA { int id; };
139 struct COV { int id; };
140 struct LI { int id; };
141 struct LLA { int id; };
142 struct FD { int id; };
143 struct VO { int id; };
144 struct PTS { int id; };
145 struct PTA { int id; };
146 struct RD { int id; };
147 struct FBO { int id; };
148 struct SM { int id; };
149 struct TRK { int id; };
150 struct WAV { int id; };
151 struct TBUF { int id; };
152 struct SFO { int id; };
153 struct W { int id; };
154 struct WM { int id; };
155 struct FtA { int id; };
156 struct ML { int id; };
157 template<class T>
158 struct A { int id; };
159 struct EX { int id; };
160 struct PH { int id; };
161 struct TS { int id; };
162 struct CT { int id; };
163 struct CC { int id; };
164 struct IM { int id; };
165 //template<class T>
166 //struct E { int id; };
167 //struct A { int id; };
168
169
170 class ShaderApi;
171class Env
172{
173public:
176 IMPORT std::vector<int> store_counts();
177 IMPORT void free_to_counts(std::vector<int> vec);
179 IMPORT void async_load_url(std::string url, std::string homepage);
180 IMPORT void async_load_callback(std::string url, void (*fptr)(void*), void *data);
181 IMPORT std::vector<unsigned char> *get_loaded_async_url(std::string url);
184private:
185 Env(const Env &);
186 void operator=(const Env &);
187public:
188 void *envimpl;
189 friend struct EnvImpl;
190};
191
192
193
194} // namespace GameApi
#define IMPORT
Definition GameApi.hh:332
Definition GameApi.hh:362
friend struct EnvImpl
Definition GameApi.hh:408
void * envimpl
Definition GameApi.hh:407
IMPORT void free_to_counts(std::vector< int > vec)
IMPORT Env()
IMPORT ~Env()
IMPORT void async_load_url(std::string url, std::string homepage)
IMPORT Env()
Definition GameApi_dep_env.cc:2245
IMPORT void async_load_callback(std::string url, void(*fptr)(void *), void *data)
IMPORT void free_memory()
IMPORT std::vector< int > store_counts()
static IMPORT Env * Latest_Env()
IMPORT void free_temp_memory()
IMPORT std::vector< unsigned char > * get_loaded_async_url(std::string url)
Definition GameApi.hh:4486
lazy data
Definition meshpage.php:1583
url
Definition meshpage.php:1781
Definition FreeType.hh:46
Definition Plane.cc:5
Definition Common.hh:54
int id
Definition Common.hh:54
Definition GameApi.hh:112
int id
Definition GameApi.hh:112
Definition Common.hh:58
int id
Definition Common.hh:58
Definition GameApi.hh:269
int id
Definition GameApi.hh:269
Definition Common.hh:74
int id
Definition Common.hh:74
Definition Common.hh:123
int id
Definition Common.hh:123
Definition Common.hh:51
int id
Definition Common.hh:51
Definition Common.hh:72
int id
Definition Common.hh:72
Definition Common.hh:71
int id
Definition Common.hh:71
Definition Common.hh:31
int id
Definition Common.hh:31
Definition Common.hh:76
int id
Definition Common.hh:76
Definition Common.hh:163
int id
Definition Common.hh:163
Definition Common.hh:32
int id
Definition Common.hh:32
Definition Common.hh:24
int id
Definition Common.hh:24
Definition Common.hh:38
int id
Definition Common.hh:38
Definition Common.hh:139
int id
Definition Common.hh:139
Definition Common.hh:94
int id
Definition Common.hh:94
Definition Common.hh:48
int id
Definition Common.hh:48
Definition Common.hh:66
int id
Definition Common.hh:66
Definition Common.hh:162
int id
Definition Common.hh:162
Definition Common.hh:93
int id
Definition Common.hh:93
Definition Common.hh:30
int id
Definition Common.hh:30
Definition Common.hh:135
int id
Definition Common.hh:135
Definition Common.hh:67
int id
Definition Common.hh:67
Definition Common.hh:27
int id
Definition Common.hh:27
Definition Common.hh:121
int id
Definition Common.hh:121
Definition Common.hh:53
int id
Definition Common.hh:53
Definition Common.hh:159
int id
Definition Common.hh:159
Definition Common.hh:107
int id
Definition Common.hh:107
Definition Common.hh:96
int id
Definition Common.hh:96
Definition Common.hh:147
int id
Definition Common.hh:147
Definition Common.hh:22
int id
Definition Common.hh:22
Definition Common.hh:75
int id
Definition Common.hh:75
Definition Common.hh:142
int id
Definition Common.hh:142
Definition Common.hh:42
int id
Definition Common.hh:42
Definition Common.hh:39
int id
Definition Common.hh:39
Definition Common.hh:23
int id
Definition Common.hh:23
Definition Common.hh:138
int id
Definition Common.hh:138
Definition Common.hh:69
int id
Definition Common.hh:69
Definition Common.hh:95
int id
Definition Common.hh:95
Definition Common.hh:119
int id
Definition Common.hh:119
Definition Common.hh:155
int id
Definition Common.hh:155
Definition Common.hh:97
int id
Definition Common.hh:97
Definition Common.hh:41
int id
Definition Common.hh:41
Definition Common.hh:21
int id
Definition Common.hh:21
Definition Common.hh:122
int id
Definition Common.hh:122
Definition Common.hh:26
int id
Definition Common.hh:26
Definition Common.hh:117
int id
Definition Common.hh:117
Definition Common.hh:43
int id
Definition Common.hh:43
Definition Common.hh:164
int id
Definition Common.hh:164
Definition Common.hh:25
int id
Definition Common.hh:25
Definition Common.hh:84
int id
Definition Common.hh:84
Definition Common.hh:50
int id
Definition Common.hh:50
Definition Common.hh:109
int id
Definition Common.hh:109
Definition Common.hh:90
int id
Definition Common.hh:90
Definition Common.hh:140
int id
Definition Common.hh:140
Definition Common.hh:141
int id
Definition Common.hh:141
Definition Common.hh:112
int id
Definition Common.hh:112
Definition Common.hh:82
int id
Definition Common.hh:82
Definition Common.hh:108
int id
Definition Common.hh:108
Definition Common.hh:101
int id
Definition Common.hh:101
Definition Common.hh:59
int id
Definition Common.hh:59
Definition Common.hh:113
int id
Definition Common.hh:113
Definition Common.hh:156
int id
Definition Common.hh:156
Definition Common.hh:65
int id
Definition Common.hh:65
Definition Common.hh:110
int id
Definition Common.hh:110
Definition Common.hh:60
int id
Definition Common.hh:60
Definition Common.hh:62
int id
Definition Common.hh:62
Definition Common.hh:111
int id
Definition Common.hh:111
Definition Common.hh:55
int id
Definition Common.hh:55
Definition GameApi.hh:190
float mat[16]
Definition GameApi.hh:190
Definition Common.hh:68
int id
Definition Common.hh:68
Definition Common.hh:87
int id
Definition Common.hh:87
Definition Common.hh:85
int id
Definition Common.hh:85
Definition Common.hh:120
int id
Definition Common.hh:120
Definition Common.hh:47
int id
Definition Common.hh:47
Definition Common.hh:89
int id
Definition Common.hh:89
Definition Common.hh:136
int id
Definition Common.hh:136
Definition Common.hh:44
int id
Definition Common.hh:44
Definition Common.hh:160
int id
Definition Common.hh:160
Definition Common.hh:128
int id
Definition Common.hh:128
Definition Common.hh:36
int id
Definition Common.hh:36
Definition Common.hh:35
int id
Definition Common.hh:35
Definition Common.hh:34
int id
Definition Common.hh:34
int id
Definition Common.hh:127
Definition Common.hh:29
int id
Definition Common.hh:29
Definition Common.hh:99
int id
Definition Common.hh:99
Definition Common.hh:88
int id
Definition Common.hh:88
Definition Common.hh:37
int id
Definition Common.hh:37
Definition Common.hh:100
int id
Definition Common.hh:100
Definition Common.hh:116
int id
Definition Common.hh:116
Definition Common.hh:145
int id
Definition Common.hh:145
Definition Common.hh:144
int id
Definition Common.hh:144
Definition Common.hh:49
int id
Definition Common.hh:49
Definition Common.hh:79
int id
Definition Common.hh:79
Definition Common.hh:86
int id
Definition Common.hh:86
Definition Common.hh:56
int id
Definition Common.hh:56
Definition Common.hh:134
int id
Definition Common.hh:134
Definition Common.hh:146
int id
Definition Common.hh:146
Definition Common.hh:83
int id
Definition Common.hh:83
Definition Common.hh:52
int id
Definition Common.hh:52
Definition Common.hh:78
int id
Definition Common.hh:78
Definition Common.hh:28
int id
Definition Common.hh:28
Definition Common.hh:40
int id
Definition Common.hh:40
Definition Common.hh:152
int id
Definition Common.hh:152
Definition Common.hh:45
int id
Definition Common.hh:45
Definition Common.hh:92
int id
Definition Common.hh:92
Definition Common.hh:33
int id
Definition Common.hh:33
Definition Common.hh:148
int id
Definition Common.hh:148
Definition Common.hh:77
int id
Definition Common.hh:77
Definition Common.hh:114
int id
Definition Common.hh:114
Definition Common.hh:137
int id
Definition Common.hh:137
Definition Common.hh:103
int id
Definition Common.hh:103
Definition Common.hh:118
int id
Definition Common.hh:118
Definition Common.hh:151
int id
Definition Common.hh:151
Definition Common.hh:63
int id
Definition Common.hh:63
Definition Common.hh:91
int id
Definition Common.hh:91
Definition Common.hh:149
int id
Definition Common.hh:149
Definition Common.hh:132
int id
Definition Common.hh:132
Definition Common.hh:161
int id
Definition Common.hh:161
Definition Common.hh:131
int id
Definition Common.hh:131
Definition Common.hh:130
int id
Definition Common.hh:130
Definition Common.hh:129
int id
Definition Common.hh:129
Definition Common.hh:115
int id
Definition Common.hh:115
Definition Common.hh:106
int id
Definition Common.hh:106
Definition Common.hh:61
int id
Definition Common.hh:61
Definition Common.hh:125
int id
Definition Common.hh:125
Definition Common.hh:124
int id
Definition Common.hh:124
Definition Common.hh:73
int id
Definition Common.hh:73
Definition Common.hh:98
int id
Definition Common.hh:98
Definition Common.hh:143
int id
Definition Common.hh:143
Definition Common.hh:133
int id
Definition Common.hh:133
Definition Common.hh:126
int id
Definition Common.hh:126
Definition Common.hh:80
int id
Definition Common.hh:80
Definition Common.hh:57
int id
Definition Common.hh:57
Definition Common.hh:104
int id
Definition Common.hh:104
Definition Common.hh:150
int id
Definition Common.hh:150
Definition Common.hh:154
int id
Definition Common.hh:154
Definition Common.hh:70
int id
Definition Common.hh:70
Definition Common.hh:153
int id
Definition Common.hh:153