189e271bb3b081915218ebe17cc446af9a5dd949
[retroray] / src / scr_mod.c
1 /*
2 RetroRay - integrated standalone vintage modeller/renderer
3 Copyright (C) 2023  John Tsiombikas <nuclear@mutantstargoat.com>
4
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.
9
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.
14
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/>.
17 */
18 #include "gaw/gaw.h"
19 #include "app.h"
20
21 static int mdl_init(void);
22 static void mdl_destroy(void);
23 static int mdl_start(void);
24 static void mdl_stop(void);
25 static void mdl_display(void);
26 static void mdl_reshape(int x, int y);
27 static void mdl_keyb(int key, int press);
28 static void mdl_mouse(int bn, int press, int x, int y);
29 static void mdl_motion(int x, int y);
30
31
32 struct app_screen scr_model = {
33         "modeller",
34         mdl_init, mdl_destroy,
35         mdl_start, mdl_stop,
36         mdl_display, mdl_reshape,
37         mdl_keyb, mdl_mouse, mdl_motion
38 };
39
40
41 static int mdl_init(void)
42 {
43         return 0;
44 }
45
46 static void mdl_destroy(void)
47 {
48 }
49
50 static int mdl_start(void)
51 {
52         return 0;
53 }
54
55 static void mdl_stop(void)
56 {
57 }
58
59 static void mdl_display(void)
60 {
61 }
62
63 static void mdl_reshape(int x, int y)
64 {
65         gaw_matrix_mode(GAW_PROJECTION);
66         gaw_load_identity();
67         gaw_perspective(50, win_aspect, 0.5, 100.0);
68 }
69
70 static void mdl_keyb(int key, int press)
71 {
72 }
73
74 static void mdl_mouse(int bn, int press, int x, int y)
75 {
76 }
77
78 static void mdl_motion(int x, int y)
79 {
80 }