2 RetroRay - integrated standalone vintage modeller/renderer
3 Copyright (C) 2023 John Tsiombikas <nuclear@mutantstargoat.com>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
29 KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7,
30 KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12,
31 KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
48 void (*destroy)(void);
51 void (*display)(void);
52 void (*reshape)(int, int);
53 void (*keyboard)(int, int);
54 void (*mouse)(int, int, int, int);
55 void (*motion)(int, int);
56 void (*sball_motion)(int, int, int);
57 void (*sball_rotate)(int, int, int);
58 void (*sball_button)(int, int);
61 extern int mouse_x, mouse_y, mouse_state[3];
62 extern unsigned int modkeys;
63 extern int win_width, win_height;
64 extern float win_aspect;
67 extern long time_msec;
68 extern struct app_screen *cur_scr;
69 extern struct app_screen scr_model, scr_rend;
72 extern struct font *uifont;
74 extern uint32_t *framebuf;
76 extern struct scene *scn;
80 void app_shutdown(void);
82 void app_display(void);
83 void app_reshape(int x, int y);
84 void app_keyboard(int key, int press);
85 void app_mouse(int bn, int st, int x, int y);
86 void app_motion(int x, int y);
87 void app_sball_motion(int x, int y, int z);
88 void app_sball_rotate(int x, int y, int z);
89 void app_sball_button(int bn, int st);
91 void app_chscr(struct app_screen *scr);
93 /* defined in main.c */
94 long app_getmsec(void);
95 void app_redisplay(void);
96 void app_swap_buffers(void);
98 void app_resize(int x, int y);
99 void app_fullscreen(int fs);
100 void app_vsync(int vsync);