Nuclide
Software Development Kit for id Technology
init.h
1/*
2 * Copyright (c) 2024 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
17void Platform_Init(void);
18void Platform_Shutdown(void);
19bool Platform_Draw(vector);
20void Platform_RendererRestarted(void);
21void Platform_CalculateRenderingScale(vector);
22bool Platform_DimensionsChanged(vector);
23bool Platform_HasStartupVideos(void);
24void Platform_PlayStartupVideos(void);
25
26
27/* Basic Menu Globals */
28int g_active;
29
30var float frametime;
31
32#ifdef MENU
33noref float lasttime;
34#endif
35
36var int g_background = FALSE;
37var int g_gamestate;
38var vector g_vecMousePos;
39vector g_menuofs;
40vector g_vidsize;
41
42noref vector g_lastmousepos;
43noref vector g_logosize;