coastline 0.0.4
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1#ifndef COASTLINE_SCREEN_H
2#define COASTLINE_SCREEN_H
3
8
9#include "common/types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16typedef void (*ScreenCallback)(void);
17
29
40extern s32 g_dwScreenWidth;
41
53
65
77
89
102
116
130
143
155
167
179
191
192#if TGR_BOSS_RALLY
199void NullStub(void);
200
208s32 ReturnZero(void);
209#endif
210
211#ifdef __cplusplus
212}
213#endif
214
215#endif /* COASTLINE_SCREEN_H */
s32 g_dwScreenWidth
The size of the frame in pixels.
void CallCurrentGameMode(void)
Call the routine of the current screen.
void SetSecondaryScreenCallback(ScreenCallback callback)
Set the second routine of the screen.
void StubRenderCallback(void)
Empty render callback.
s32 IsCurrentScreen(ScreenCallback callback)
Return whether a routine is the current screen.
ScreenCallback g_pfnNextScreen
The screen routine selected for the next frame.
s32 g_dwScreenHeight
The height of the frame in pixels.
void SetCurrentScreenCallback(ScreenCallback callback)
Set the routine the main loop calls each frame.
void GameModeMainLoop(void)
Call the current screen routine forever on N64 and return immediately on Windows.
void(* ScreenCallback)(void)
A routine the main loop calls once per frame.
Definition screen.h:16
ScreenCallback g_pfnSecondaryScreen
The secondary screen routine run after the current one, or NULL.
void StubUpdateCallback(void)
Empty update callback.
s32 g_dwScreenScaleShift
The shift from the size of the frame to the size of the frame buffer, 1 in high resolution.
ScreenCallback g_pfnCurrentScreen
The routines of the screen: the current one, the next, and a second.
void SetNextScreenCallback(ScreenCallback callback)
Set a routine FlushDisplayList() calls once, when the RDP has finished the frame before,...
The integer and floating-point types of the console, for headers shared with Windows.
int s32
Definition ultratypes.h:25