102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_MATH_TYPES_H
3#define PCDOGS_MATH_TYPES_H
5
6#pragma pack(push, 1)
7
9{
10 struct
11 {
12 int32_t x;
13 int32_t y;
14 int32_t z;
15 } min;
16};
17
18#pragma pack(pop)
19_Static_assert(sizeof(struct Math_BoundsVector) == 12, "Math_BoundsVector size");
20
21#pragma pack(push, 1)
22
24{
25 uint8_t b;
26 uint8_t g;
27 uint8_t r;
28 uint8_t a;
29};
30
31#pragma pack(pop)
32_Static_assert(sizeof(struct Math_ColorBGRA8) == 4, "Math_ColorBGRA8 size");
33
34#pragma pack(push, 1)
35
37{
38 uint8_t r;
39 uint8_t g;
40 uint8_t b;
41};
42
43#pragma pack(pop)
44_Static_assert(sizeof(struct Math_ColorRGB8) == 3, "Math_ColorRGB8 size");
45
46#pragma pack(push, 1)
47
49{
50 uint8_t r;
51 uint8_t g;
52 uint8_t b;
53 uint8_t a;
54};
55
56#pragma pack(pop)
57_Static_assert(sizeof(struct Math_ColorRGBA8) == 4, "Math_ColorRGBA8 size");
58
59#pragma pack(push, 4)
60
62{
63 float r;
64 float g;
65 float b;
66 float a;
67};
68
69#pragma pack(pop)
70_Static_assert(sizeof(struct Math_ColorRGBAF) == 16, "Math_ColorRGBAF size");
71
72#pragma pack(push, 4)
73
75{
76 int32_t r;
77 int32_t g;
78 int32_t b;
79 int32_t a;
80};
81
82#pragma pack(pop)
83_Static_assert(sizeof(struct Math_ColorRGBAI32) == 16, "Math_ColorRGBAI32 size");
84
85#pragma pack(push, 1)
86
88{
89 float r;
90 float g;
91 float b;
92};
93
94#pragma pack(pop)
95_Static_assert(sizeof(struct Math_ColorRGBF) == 12, "Math_ColorRGBF size");
96
97#pragma pack(push, 1)
98
100{
101 int16_t r;
102 int16_t g;
103 int16_t b;
104};
105
106#pragma pack(pop)
107_Static_assert(sizeof(struct Math_ColorRGBI16) == 6, "Math_ColorRGBI16 size");
108
109#pragma pack(push, 4)
110
112{
113 int32_t r;
114 int32_t g;
115 int32_t b;
116};
117
118#pragma pack(pop)
119_Static_assert(sizeof(struct Math_ColorRGBI32) == 12, "Math_ColorRGBI32 size");
120
121#pragma pack(push, 4)
122
124{
125 uint32_t width;
126 uint32_t height;
127};
128
129#pragma pack(pop)
130_Static_assert(sizeof(struct Math_DimensionsU32) == 8, "Math_DimensionsU32 size");
131
132#pragma pack(push, 1)
133
135{
136 uint8_t width;
137 uint8_t height;
138};
139
140#pragma pack(pop)
141_Static_assert(sizeof(struct Math_DimensionsU8) == 2, "Math_DimensionsU8 size");
142
143#pragma pack(push, 4)
144
146{
147 int32_t a;
148 int32_t b;
149};
150
151#pragma pack(pop)
152_Static_assert(sizeof(struct Math_EasePairI32) == 8, "Math_EasePairI32 size");
153
154#pragma pack(push, 2)
155
157{
158 union
159 {
160 struct
161 {
162 int16_t m00;
163 int16_t m01;
164 int16_t m02;
165 int16_t m10;
166 int16_t m11;
167 int16_t m12;
168 int16_t m20;
169 int16_t m21;
170 int16_t m22;
171 };
172
173 int16_t elements[9];
174 };
175};
176
177#pragma pack(pop)
178_Static_assert(sizeof(struct Math_Matrix3x3I16) == 18, "Math_Matrix3x3I16 size");
179_Static_assert(offsetof(struct Math_Matrix3x3I16, m00) == 0, "Math_Matrix3x3I16.m00 offset");
180_Static_assert(offsetof(struct Math_Matrix3x3I16, m01) == 2, "Math_Matrix3x3I16.m01 offset");
181_Static_assert(offsetof(struct Math_Matrix3x3I16, m02) == 4, "Math_Matrix3x3I16.m02 offset");
182_Static_assert(offsetof(struct Math_Matrix3x3I16, m10) == 6, "Math_Matrix3x3I16.m10 offset");
183_Static_assert(offsetof(struct Math_Matrix3x3I16, m11) == 8, "Math_Matrix3x3I16.m11 offset");
184_Static_assert(offsetof(struct Math_Matrix3x3I16, m12) == 10, "Math_Matrix3x3I16.m12 offset");
185_Static_assert(offsetof(struct Math_Matrix3x3I16, m20) == 12, "Math_Matrix3x3I16.m20 offset");
186_Static_assert(offsetof(struct Math_Matrix3x3I16, m21) == 14, "Math_Matrix3x3I16.m21 offset");
187_Static_assert(offsetof(struct Math_Matrix3x3I16, m22) == 16, "Math_Matrix3x3I16.m22 offset");
188
189#pragma pack(push, 1)
190
192{
193 union
194 {
195 struct
196 {
197 int16_t w;
198 int16_t x;
199
200 union
201 {
202 int16_t y;
203
204 struct
205 {
206 uint8_t y_low_byte;
207 uint8_t y_high_byte;
208 };
209 };
210
211 int16_t z;
212 };
213
214 int16_t components[4];
215 };
216};
217
218#pragma pack(pop)
219_Static_assert(sizeof(struct Math_QuaternionI16) == 8, "Math_QuaternionI16 size");
220_Static_assert(offsetof(struct Math_QuaternionI16, y_high_byte) == 5, "Math_QuaternionI16 Y high byte offset");
221_Static_assert(sizeof(((struct Math_QuaternionI16 *)0)->y_high_byte) == 1, "Math_QuaternionI16 Y high byte width");
222_Static_assert(offsetof(struct Math_QuaternionI16, w) == 0, "Math_QuaternionI16.w offset");
223_Static_assert(offsetof(struct Math_QuaternionI16, x) == 2, "Math_QuaternionI16.x offset");
224_Static_assert(offsetof(struct Math_QuaternionI16, y) == 4, "Math_QuaternionI16.y offset");
225_Static_assert(offsetof(struct Math_QuaternionI16, z) == 6, "Math_QuaternionI16.z offset");
226
227#pragma pack(push, 2)
228
230{
231 int16_t min;
232 int16_t max;
233};
234
235#pragma pack(pop)
236_Static_assert(sizeof(struct Math_RangeI16) == 4, "Math_RangeI16 size");
237
238#pragma pack(push, 4)
239
241{
242 int32_t min;
243 int32_t max;
244};
245
246#pragma pack(pop)
247_Static_assert(sizeof(struct Math_RangeI32) == 8, "Math_RangeI32 size");
248
249#pragma pack(push, 4)
250
252{
253 float x;
254 float y;
255 float w;
256 float h;
257};
258
259#pragma pack(pop)
260_Static_assert(sizeof(struct Math_RectF) == 16, "Math_RectF size");
261
262#pragma pack(push, 2)
263
265{
266 int16_t x;
267 int16_t y;
268 int16_t w;
269 int16_t h;
270};
271
272#pragma pack(pop)
273_Static_assert(sizeof(struct Math_RectI16) == 8, "Math_RectI16 size");
274
275#pragma pack(push, 4)
276
278{
279 int32_t x;
280 int32_t y;
281 int32_t w;
282 int32_t h;
283};
284
285#pragma pack(pop)
286_Static_assert(sizeof(struct Math_RectI32) == 16, "Math_RectI32 size");
287
288#pragma pack(push, 2)
289
291{
292 int16_t x;
293 int16_t y;
294};
295
296#pragma pack(pop)
297_Static_assert(sizeof(struct Math_ScreenPointI16) == 4, "Math_ScreenPointI16 size");
298
299#pragma pack(push, 4)
300
302{
303 int32_t x;
304 int32_t y;
305};
306
307#pragma pack(pop)
308_Static_assert(sizeof(struct Math_ScreenPointI32) == 8, "Math_ScreenPointI32 size");
309
310#pragma pack(push, 2)
311
313{
314 int16_t width;
315 int16_t height;
316};
317
318#pragma pack(pop)
319_Static_assert(sizeof(struct Math_SizeI16) == 4, "Math_SizeI16 size");
320
321#pragma pack(push, 4)
322
324{
325 int32_t width;
326 int32_t height;
327};
328
329#pragma pack(pop)
330_Static_assert(sizeof(struct Math_SizeI32) == 8, "Math_SizeI32 size");
331
332#pragma pack(push, 2)
333
335{
336 uint16_t width;
337 uint16_t height;
338};
339
340#pragma pack(pop)
341_Static_assert(sizeof(struct Math_SizeU16) == 4, "Math_SizeU16 size");
342
343#pragma pack(push, 1)
344
346{
347 uint8_t width;
348 uint8_t height;
349};
350
351#pragma pack(pop)
352_Static_assert(sizeof(struct Math_SizeU8) == 2, "Math_SizeU8 size");
353
354#pragma pack(push, 2)
355
357{
358 int16_t u;
359 int16_t v;
360};
361
362#pragma pack(pop)
363_Static_assert(sizeof(struct Math_UV16) == 4, "Math_UV16 size");
364
365#pragma pack(push, 1)
366
368{
369 uint8_t u;
370 uint8_t v;
371};
372
373#pragma pack(pop)
374_Static_assert(sizeof(struct Math_UV8) == 2, "Math_UV8 size");
375
376#pragma pack(push, 4)
377
379{
380 float u;
381 float v;
382};
383
384#pragma pack(pop)
385_Static_assert(sizeof(struct Math_UVFloat) == 8, "Math_UVFloat size");
386
387#pragma pack(push, 4)
388
390{
391 float x;
392 float y;
393};
394
395#pragma pack(pop)
396_Static_assert(sizeof(struct Math_Vec2F) == 8, "Math_Vec2F size");
397
398#pragma pack(push, 2)
399
401{
402 int16_t x;
403 int16_t y;
404};
405
406#pragma pack(pop)
407_Static_assert(sizeof(struct Math_Vec2I16) == 4, "Math_Vec2I16 size");
408
409#pragma pack(push, 2)
410
412{
413 int16_t x;
414 int16_t z;
415};
416
417#pragma pack(pop)
418_Static_assert(sizeof(struct Math_Vec2I16XZ) == 4, "Math_Vec2I16XZ size");
419
420#pragma pack(push, 4)
421
423{
424 int32_t x;
425 int32_t y;
426};
427
428#pragma pack(pop)
429_Static_assert(sizeof(struct Math_Vec2I32) == 8, "Math_Vec2I32 size");
430
431#pragma pack(push, 4)
432
434{
435 int32_t x;
436 int32_t z;
437};
438
439#pragma pack(pop)
440_Static_assert(sizeof(struct Math_Vec2I32XZ) == 8, "Math_Vec2I32XZ size");
441
442#pragma pack(push, 4)
443
445{
446 float x;
447 float y;
448 float z;
449};
450
451#pragma pack(pop)
452_Static_assert(sizeof(struct Math_Vec3F) == 12, "Math_Vec3F size");
453
454#pragma pack(push, 2)
455
457{
458 int16_t x;
459 int16_t y;
460 int16_t z;
461};
462
463#pragma pack(pop)
464_Static_assert(sizeof(struct Math_Vec3I16) == 6, "Math_Vec3I16 size");
465
466#pragma pack(push, 4)
467
469{
470 int32_t x;
471 int32_t y;
472 int32_t z;
473};
474
475#pragma pack(pop)
476_Static_assert(sizeof(struct Math_Vec3I32) == 12, "Math_Vec3I32 size");
477
478#pragma pack(push, 4)
479
481{
482 int32_t x;
483 int32_t z;
484 int32_t y;
485};
486
487#pragma pack(pop)
488_Static_assert(sizeof(struct Math_Vec3I32XZY) == 12, "Math_Vec3I32XZY size");
489
490#pragma pack(push, 4)
491
493{
494 uint32_t x;
495 uint32_t y;
496 uint32_t z;
497};
498
499#pragma pack(pop)
500_Static_assert(sizeof(struct Math_Vec3U) == 12, "Math_Vec3U size");
501
502#pragma pack(push, 2)
503
505{
506 int16_t x;
507 int16_t y;
508 int16_t w;
509 int16_t h;
510};
511
512#pragma pack(pop)
513_Static_assert(sizeof(struct Math_ViewportI16) == 8, "Math_ViewportI16 size");
514
515#pragma pack(push, 4)
516
518{
519 int32_t x;
520 int32_t y;
521 int32_t w;
522 int32_t h;
523};
524
525#pragma pack(pop)
526_Static_assert(sizeof(struct Math_ViewportI32) == 16, "Math_ViewportI32 size");
527
528#pragma pack(push, 1)
529
531{
532 struct
533 {
534 int32_t x;
535 int32_t y;
536 int32_t z;
538};
539
540#pragma pack(pop)
541_Static_assert(sizeof(struct Vec3_FP12) == 12, "Vec3_FP12 size");
542
543#pragma pack(push, 4)
544
552
553#pragma pack(pop)
554_Static_assert(sizeof(struct Math_OrientedBoundsRecord) == 44, "Math_OrientedBoundsRecord size");
555
556#pragma pack(push, 4)
557
564
565#pragma pack(pop)
566_Static_assert(sizeof(struct Math_TransformQ12Q6) == 32, "Math_TransformQ12Q6 size");
567
568/* Paired loads preserve the original scratch-copy access widths. */
569#pragma pack(push, 2)
570
572{
574
575 struct
576 {
577 uint32_t m00_m01;
578 uint32_t m02_m10;
579 uint32_t m11_m12;
580 uint32_t m20_m21;
581 int16_t m22;
583
584 struct
585 {
587 uint32_t m10_m11;
589};
590
591#pragma pack(pop)
592_Static_assert(sizeof(union Math_RotationScratch) == 18, "Math_RotationScratch size");
593_Static_assert(offsetof(union Math_RotationScratch, pairs.m00_m01) == 0, "rotation pair 0 offset");
594_Static_assert(offsetof(union Math_RotationScratch, pairs.m02_m10) == 4, "rotation pair 1 offset");
595_Static_assert(offsetof(union Math_RotationScratch, pairs.m11_m12) == 8, "rotation pair 2 offset");
596_Static_assert(offsetof(union Math_RotationScratch, pairs.m20_m21) == 12, "rotation pair 3 offset");
597_Static_assert(offsetof(union Math_RotationScratch, crossing_pair.m10_m11) == 6, "rotation crossing pair offset");
598
599#endif /* PCDOGS_MATH_TYPES_H */
int32_t x
Definition types.h:12
struct Math_BoundsVector::@016361335047344362256116160276074164377146057352 min
int32_t y
Definition types.h:13
int32_t z
Definition types.h:14
uint8_t b
Definition types.h:25
uint8_t g
Definition types.h:26
uint8_t r
Definition types.h:27
uint8_t a
Definition types.h:28
uint8_t b
Definition types.h:40
uint8_t g
Definition types.h:39
uint8_t r
Definition types.h:38
uint8_t b
Definition types.h:52
uint8_t r
Definition types.h:50
uint8_t a
Definition types.h:53
uint8_t g
Definition types.h:51
int32_t r
Definition types.h:76
int32_t a
Definition types.h:79
int32_t b
Definition types.h:78
int32_t g
Definition types.h:77
float g
Definition types.h:90
float r
Definition types.h:89
float b
Definition types.h:91
int16_t b
Definition types.h:103
int16_t g
Definition types.h:102
int16_t r
Definition types.h:101
int32_t b
Definition types.h:115
int32_t r
Definition types.h:113
int32_t g
Definition types.h:114
uint32_t height
Definition types.h:126
uint32_t width
Definition types.h:125
uint8_t width
Definition types.h:136
uint8_t height
Definition types.h:137
int32_t b
Definition types.h:148
int32_t a
Definition types.h:147
int16_t m21
Definition types.h:169
int16_t m00
Definition types.h:162
int16_t m01
Definition types.h:163
int16_t elements[9]
Definition types.h:173
int16_t m12
Definition types.h:167
int16_t m11
Definition types.h:166
int16_t m20
Definition types.h:168
int16_t m22
Definition types.h:170
int16_t m02
Definition types.h:164
int16_t m10
Definition types.h:165
struct Math_Vec3I32 center
Definition types.h:547
struct Math_Vec3I32 half
Definition types.h:548
struct Math_Vec2I32 axis1
Definition types.h:550
struct Math_Vec3I32 axis0
Definition types.h:549
int16_t components[4]
Definition types.h:214
uint8_t y_high_byte
Definition types.h:207
uint8_t y_low_byte
Definition types.h:206
int16_t max
Definition types.h:232
int16_t min
Definition types.h:231
int32_t min
Definition types.h:242
int32_t max
Definition types.h:243
float y
Definition types.h:254
float w
Definition types.h:255
float x
Definition types.h:253
float h
Definition types.h:256
int16_t w
Definition types.h:268
int16_t y
Definition types.h:267
int16_t x
Definition types.h:266
int16_t h
Definition types.h:269
int32_t x
Definition types.h:279
int32_t w
Definition types.h:281
int32_t y
Definition types.h:280
int32_t h
Definition types.h:282
int16_t height
Definition types.h:315
int16_t width
Definition types.h:314
int32_t height
Definition types.h:326
int32_t width
Definition types.h:325
uint16_t width
Definition types.h:336
uint16_t height
Definition types.h:337
uint8_t width
Definition types.h:347
uint8_t height
Definition types.h:348
struct Math_Vec3I32 translationQ6
Definition types.h:562
struct Math_Matrix3x3I16 rotationQ12
Definition types.h:560
int16_t reserved12
Definition types.h:561
int16_t u
Definition types.h:358
int16_t v
Definition types.h:359
uint8_t v
Definition types.h:370
uint8_t u
Definition types.h:369
float u
Definition types.h:380
float v
Definition types.h:381
float x
Definition types.h:391
float y
Definition types.h:392
int16_t x
Definition types.h:413
int16_t z
Definition types.h:414
int16_t x
Definition types.h:402
int16_t y
Definition types.h:403
int32_t x
Definition types.h:435
int32_t z
Definition types.h:436
int32_t y
Definition types.h:425
int32_t x
Definition types.h:424
float z
Definition types.h:448
float y
Definition types.h:447
float x
Definition types.h:446
int16_t z
Definition types.h:460
int16_t x
Definition types.h:458
int16_t y
Definition types.h:459
int32_t x
Definition types.h:482
int32_t z
Definition types.h:483
int32_t y
Definition types.h:484
int32_t y
Definition types.h:471
int32_t x
Definition types.h:470
int32_t z
Definition types.h:472
uint32_t y
Definition types.h:495
uint32_t z
Definition types.h:496
uint32_t x
Definition types.h:494
int16_t y
Definition types.h:507
int16_t h
Definition types.h:509
int16_t x
Definition types.h:506
int16_t w
Definition types.h:508
int32_t x
Definition types.h:519
int32_t h
Definition types.h:522
int32_t w
Definition types.h:521
int32_t y
Definition types.h:520
int32_t z
Definition types.h:536
int32_t x
Definition types.h:534
struct Vec3_FP12::@226254277135122251260176213100043045151135237062 vec
int32_t y
Definition types.h:535
uint32_t m00_m01
Definition types.h:577
struct Math_RotationScratch::@322145126316055053332152243213333122111070305322 pairs
int16_t preceding_elements[3]
Definition types.h:586
struct Math_RotationScratch::@256134342376326376272333200067227117036370371361 crossing_pair
uint32_t m11_m12
Definition types.h:579
struct Math_Matrix3x3I16 matrix
Definition types.h:573
uint32_t m02_m10
Definition types.h:578
uint32_t m20_m21
Definition types.h:580
uint32_t m10_m11
Definition types.h:587