Render game graphics using OpenGL
[mercenary-reloaded.git] / src / mercenary / mercenary.h
1
2 /* cause why the cpu execution loop stopped */
3 enum {
4         STOP_AT_END = 0,
5         STOP_AT_WAIT_VBL,
6         STOP_AT_CLEAR_SCREEN1,
7         STOP_AT_CLEAR_SCREEN2,
8         STOP_AT_CLEAR_SCREEN3,
9         STOP_AT_DRAW_GROUND,
10         STOP_AT_COORD_OBJECT,
11         STOP_AT_POLY_OBJECT_M3,
12         STOP_AT_POLY_OBJECT_M2,
13         STOP_AT_LINE_OBJECT,
14         STOP_AT_COORD_BEACON,
15         STOP_AT_POINT_BEACON,
16         STOP_AT_COORD_BUILDING_EXTERIOR,
17         STOP_AT_POLY_BUILDING_EXTERIOR,
18         STOP_AT_LINE_BUILDING_EXTERIOR,
19         STOP_AT_COORD_BUILDING_INTERIOR,
20         STOP_AT_POLY_BUILDING_INTERIOR1,
21         STOP_AT_POLY_BUILDING_INTERIOR2,
22         STOP_AT_POLY_BUILDING_INTERIOR3,
23         STOP_AT_POLY_BUILDING_INTERIOR4,
24         STOP_AT_POLY_BUILDING_INTERIOR5,
25         STOP_AT_POLY_BUILDING_INTERIOR6,
26         STOP_AT_POLY_BUILDING_INTERIOR1to4,
27         STOP_AT_POLY_BUILDING_INTERIOR5to6,
28         STOP_AT_WALL_BUILDING,
29         STOP_AT_COORD_COMET,
30         STOP_AT_MATRIX_COMET,
31         STOP_AT_POLY_COMET,
32         STOP_AT_COORD_LINE_ROADS,
33         STOP_AT_LINE_ROADS,
34         STOP_AT_LINE_ROADS_CENTER,
35         STOP_AT_COORD_POLY_ROADS,
36         STOP_AT_POLY_ROADS,
37         STOP_AT_COORD_TAGS,
38         STOP_AT_COORD_TAGS2,
39         STOP_AT_LINE_TAGS1,
40         STOP_AT_LINE_TAGS2,
41         STOP_AT_POLY_TAGS1,
42         STOP_AT_POLY_TAGS2,
43         STOP_AT_COORD_PLANET,
44         STOP_AT_MATRIX_PLANET,
45         STOP_AT_DRAW_PLANET,
46         STOP_AT_DRAW_COMET,
47         STOP_AT_DRAW_STARS_SPACE,
48         STOP_AT_DRAW_STARS_GROUND,
49         STOP_AT_DRAW_STARS_FLYING,
50         STOP_AT_DRAW_STARS_FLYING2,
51         STOP_AT_DRAW_STARS_INTERSTELLAR,
52         STOP_AT_DRAW_SUN_INTERSTELLAR,
53         STOP_AT_COORD_ISLANDS,
54         STOP_AT_POLY_ISLANDS,
55         STOP_AT_LINE_ISLANDS,
56         STOP_AT_DRAW_SIGHTS,
57         STOP_AT_POLY_UKN2,
58         STOP_AT_PLANET_UKN1,
59         STOP_AT_PLANET_UKN2,
60 };
61
62 extern const struct cpu_stop mercenary_stop_at[];
63 void mercenary_load(void);
64 void mercenary_patch(void);
65 uint32_t mercenary_palette_view(void);
66 uint32_t mercenary_palette_render(void);
67 uint32_t mercenary_palette_predefined(void);
68 uint32_t mercenary_palette_stars(void);
69 uint32_t mercenary_object_vertex_register(void);
70 void mercenary_get_orientation(double *roll, double *pitch, double *yaw);
71 void mercenary_get_orientation_raw(int16_t *pitch, uint16_t *yaw);
72 void mercenary_get_orientation_planet(double *inclination, double *rotation);
73 void mercenary_coord_building_interior(int16_t *east, int32_t *height1, int32_t *height2, int32_t *height3, int32_t *height4, int16_t *north);
74 void mercenary_get_height(int32_t *height);
75 int mercenary_street_color_index(void);
76 int mercenary_line_tags_index(void);
77 uint16_t mercenary_poly_tags_color(void);
78 int mercenary_background_index(void);
79 uint32_t mercenary_planet_scale_index(void);
80 uint32_t mercenary_star_table(void);
81 extern const char *mercenary_gamesavesuffix;
82