Mirai's Miscellaneous Misadventures

M20 / include / mimimi / models.h

1// copyright 2022 zamfofex
2// license: AGPLv3 or later
3
4#ifndef MIMIMI_MODELS_H
5#define MIMIMI_MODELS_H
6
7struct mimimi_rotating_image_row
8{
9	int size;
10	unsigned char count;
11	unsigned char colors[64];
12};
13
14struct mimimi_rotating_image
15{
16	int count;
17	int oy;
18	int oz;
19	struct mimimi_rotating_image_row rows[];
20};
21
22struct mimimi_model_layer
23{
24	int count;
25	struct mimimi_rotating_image *images[];
26};
27
28struct mimimi_model
29{
30	struct mimimi_model_layer *head;
31	struct mimimi_model_layer *torso;
32	struct mimimi_model_layer *left_arm;
33	struct mimimi_model_layer *right_arm;
34	struct mimimi_model_layer *left_leg;
35	struct mimimi_model_layer *right_leg;
36};
37
38#endif