Mirai's Miscellaneous Misadventures

M39 / include / mimimi / chapters.h

1// copyright 2023 zamfofex
2// license: AGPLv3 or later
3
4#ifndef MIMIMI_CHAPTERS_H
5#define MIMIMI_CHAPTERS_H
6
7struct mimimi_image;
8struct mimimi_sprite;
9struct mimimi_behavior;
10struct mimimi_ground;
11struct mimimi_size;
12struct mimimi_allocator;
13struct mimimi_engine;
14struct mimimi_position;
15struct mimimi_video_appearance;
16struct mimimi_font;
17
18struct mimimi_chapter
19{
20	struct mimimi_behavior *behavior;
21	unsigned char left, right;
22};
23
24struct mimimi_sprite *mimimi_sprite(struct mimimi_ground *ground, int x, int y, int width, int height, struct mimimi_allocator *allocator);
25struct mimimi_behavior *mimimi_display(struct mimimi_engine *engine, struct mimimi_position *camera, struct mimimi_sprite *sprite, struct mimimi_video_appearance *appearance, int *direction, int x, int y, struct mimimi_allocator *allocator);
26
27struct mimimi_behavior *mimimi_background(struct mimimi_engine *engine, struct mimimi_position *camera, void *texture, int x, int y, int z, struct mimimi_allocator *allocator);
28struct mimimi_behavior *mimimi_overlay(struct mimimi_engine *engine, void *texture, int x, int y, struct mimimi_allocator *allocator);
29
30void mimimi_camera_stamp(struct mimimi_engine *engine, struct mimimi_position *camera, int x, int y, int z, void *texture);
31
32#endif