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/>.
21 static int rend_init(void);
22 static void rend_destroy(void);
23 static int rend_start(void);
24 static void rend_stop(void);
25 static void rend_display(void);
26 static void rend_reshape(int x, int y);
27 static void rend_keyb(int key, int press);
28 static void rend_mouse(int bn, int press, int x, int y);
29 static void rend_motion(int x, int y);
32 struct app_screen scr_rend = {
34 rend_init, rend_destroy,
35 rend_start, rend_stop,
36 rend_display, rend_reshape,
37 rend_keyb, rend_mouse, rend_motion
41 static int rend_init(void)
46 static void rend_destroy(void)
50 static int rend_start(void)
55 static void rend_stop(void)
59 static void rend_display(void)
63 static void rend_reshape(int x, int y)
65 gaw_matrix_mode(GAW_PROJECTION);
67 gaw_perspective(50, win_aspect, 0.5, 100.0);
70 static void rend_keyb(int key, int press)
74 static void rend_mouse(int bn, int press, int x, int y)
78 static void rend_motion(int x, int y)