coastline 0.0.4
Loading...
Searching...
No Matches
screen.h File Reference

The size of the frame, and the routines of the screen the main loop calls. More...

#include "common/types.h"
Include dependency graph for screen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* ScreenCallback) (void)
 A routine the main loop calls once per frame.

Functions

void SetCurrentScreenCallback (ScreenCallback callback)
 Set the routine the main loop calls each frame.
void SetNextScreenCallback (ScreenCallback callback)
 Set a routine FlushDisplayList() calls once, when the RDP has finished the frame before, so that it can change data that frame drew from.
s32 IsCurrentScreen (ScreenCallback callback)
 Return whether a routine is the current screen.
void SetSecondaryScreenCallback (ScreenCallback callback)
 Set the second routine of the screen.
void CallCurrentGameMode (void)
 Call the routine of the current screen.
void GameModeMainLoop (void)
 Call the current screen routine forever on N64 and return immediately on Windows.
void StubUpdateCallback (void)
 Empty update callback.
void StubRenderCallback (void)
 Empty render callback.

Variables

s32 g_dwScreenScaleShift
 The shift from the size of the frame to the size of the frame buffer, 1 in high resolution.
s32 g_dwScreenWidth
 The size of the frame in pixels.
s32 g_dwScreenHeight
 The height of the frame in pixels.
ScreenCallback g_pfnCurrentScreen
 The routines of the screen: the current one, the next, and a second.
ScreenCallback g_pfnNextScreen
 The screen routine selected for the next frame.
ScreenCallback g_pfnSecondaryScreen
 The secondary screen routine run after the current one, or NULL.

Detailed Description

The size of the frame, and the routines of the screen the main loop calls.

Typedef Documentation

◆ ScreenCallback

typedef void(* ScreenCallback) (void)

A routine the main loop calls once per frame.

Function Documentation

◆ SetCurrentScreenCallback()

void SetCurrentScreenCallback ( ScreenCallback callback)

Set the routine the main loop calls each frame.

Parameters
callbackThe routine to call each frame.
Ghidra address:
USA: 0x8021c6e4
Ghidra address:
Asia: 0x8021C234
Ghidra address:
EUR: 0x8021d8d8
Ghidra address:
JPN: 0x8021d1a8
Ghidra address:
BRD3D: 0x10034c66
Ghidra address:
BRGlide: 0x1002e317

◆ SetNextScreenCallback()

void SetNextScreenCallback ( ScreenCallback callback)

Set a routine FlushDisplayList() calls once, when the RDP has finished the frame before, so that it can change data that frame drew from.

Parameters
callbackThe routine to call once.
Ghidra address:
USA: 0x8021c6b8
Ghidra address:
Asia: 0x8021C208
Ghidra address:
EUR: 0x8021d8ac
Ghidra address:
JPN: 0x8021d17c
Ghidra address:
BRD3D: 0x10034c37
Ghidra address:
BRGlide: 0x1002e2e8

◆ IsCurrentScreen()

s32 IsCurrentScreen ( ScreenCallback callback)

Return whether a routine is the current screen.

Parameters
callbackThe routine to compare with the current screen.
Returns
1 if the routine is the current screen, 0 otherwise.
Ghidra address:
USA: 0x8021c6d0
Ghidra address:
Asia: 0x8021C220
Ghidra address:
EUR: 0x8021d8c4
Ghidra address:
JPN: 0x8021d194
Ghidra address:
BRD3D: 0x10034c51
Ghidra address:
BRGlide: 0x1002e302

◆ SetSecondaryScreenCallback()

void SetSecondaryScreenCallback ( ScreenCallback callback)

Set the second routine of the screen.

Parameters
callbackThe routine.
Ghidra address:
USA: 0x8021c6c4
Ghidra address:
Asia: 0x8021C214
Ghidra address:
EUR: 0x8021d8b8
Ghidra address:
JPN: 0x8021d188
Ghidra address:
BRD3D: 0x10034c44
Ghidra address:
BRGlide: 0x1002e2f5

◆ CallCurrentGameMode()

void CallCurrentGameMode ( void )

Call the routine of the current screen.

Ghidra address:
USA: 0x8021c6f0
Ghidra address:
Asia: 0x8021C240
Ghidra address:
EUR: 0x8021d8e4
Ghidra address:
JPN: 0x8021d1b4
Ghidra address:
BRD3D: 0x10034c73
Ghidra address:
BRGlide: 0x1002e324

◆ GameModeMainLoop()

void GameModeMainLoop ( void )

Call the current screen routine forever on N64 and return immediately on Windows.

Ghidra address:
USA: 0x8021c718
Ghidra address:
Asia: 0x8021C268
Ghidra address:
EUR: 0x8021d90c
Ghidra address:
JPN: 0x8021d1dc
Ghidra address:
BRD3D: 0x10034c7e
Ghidra address:
BRGlide: 0x1002e32f

◆ StubUpdateCallback()

void StubUpdateCallback ( void )

Empty update callback.

Ghidra address:
USA: 0x8021c740
Ghidra address:
Asia: 0x8021C290
Ghidra address:
EUR: 0x8021d940
Ghidra address:
JPN: 0x8021d210
Ghidra address:
BRD3D: 0x10034c83
Ghidra address:
BRGlide: 0x1002e334

◆ StubRenderCallback()

void StubRenderCallback ( void )

Empty render callback.

Ghidra address:
USA: 0x8021c6b0
Ghidra address:
Asia: 0x8021C200
Ghidra address:
EUR: 0x8021d8a4
Ghidra address:
JPN: 0x8021d174
Ghidra address:
BRD3D: 0x10034c32
Ghidra address:
BRGlide: 0x1002e2e3

Variable Documentation

◆ g_dwScreenScaleShift

s32 g_dwScreenScaleShift
extern

The shift from the size of the frame to the size of the frame buffer, 1 in high resolution.

Ghidra address:
USA: 0x8028a850
Ghidra address:
Asia: 0x8028A3A0
Ghidra address:
EUR: 0x8028ca50
Ghidra address:
JPN: 0x8028c520
Ghidra address:
BRD3D: 0x106c65e4
Ghidra address:
BRGlide: 0x106ed674

◆ g_dwScreenWidth

s32 g_dwScreenWidth
extern

The size of the frame in pixels.

Ghidra address:
USA: 0x8028aab0
Ghidra address:
Asia: 0x8028A600
Ghidra address:
EUR: 0x8028ccb8
Ghidra address:
JPN: 0x8028c788
Ghidra address:
BRD3D: 0x106c0684
Ghidra address:
BRGlide: 0x106e7714

◆ g_dwScreenHeight

s32 g_dwScreenHeight
extern

The height of the frame in pixels.

Ghidra address:
USA: 0x8028aab4
Ghidra address:
Asia: 0x8028A604
Ghidra address:
EUR: 0x8028ccbc
Ghidra address:
JPN: 0x8028c78c
Ghidra address:
BRD3D: 0x106c299c
Ghidra address:
BRGlide: 0x106e9a2c

◆ g_pfnCurrentScreen

ScreenCallback g_pfnCurrentScreen
extern

The routines of the screen: the current one, the next, and a second.

Ghidra address:
USA: 0x8031b318
Ghidra address:
Asia: 0x8031ADC8
Ghidra address:
EUR: 0x8031d818
Ghidra address:
JPN: 0x8031c448
Ghidra address:
BRD3D: 0x106c0964
Ghidra address:
BRGlide: 0x106e79f4

◆ g_pfnNextScreen

ScreenCallback g_pfnNextScreen
extern

The screen routine selected for the next frame.

Ghidra address:
USA: 0x8031b31c
Ghidra address:
Asia: 0x8031ADCC
Ghidra address:
EUR: 0x8031d81c
Ghidra address:
JPN: 0x8031c44c
Ghidra address:
BRD3D: 0x106c198c
Ghidra address:
BRGlide: 0x106e8a1c

◆ g_pfnSecondaryScreen

ScreenCallback g_pfnSecondaryScreen
extern

The secondary screen routine run after the current one, or NULL.

Ghidra address:
USA: 0x8031b320
Ghidra address:
Asia: 0x8031ADD0
Ghidra address:
EUR: 0x8031d820
Ghidra address:
JPN: 0x8031c450
Ghidra address:
BRD3D: 0x106c1608
Ghidra address:
BRGlide: 0x106e8698