coastline 0.0.4
Loading...
Searching...
No Matches
splash.h
Go to the documentation of this file.
1#ifndef COASTLINE_SPLASH_H
2#define COASTLINE_SPLASH_H
3
8
9#include <PR/gbi.h>
10#include <PR/ultratypes.h>
11
12#include "common/model.h"
13#include "common/texrect.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
28
38
48
56extern Light g_SplashDirectionalLight;
58
59#if TGR_REGION == TGR_REGION_JP
66
72extern u16 g_awSplashTitlePalette[256];
73#endif /* TGR_REGION == TGR_REGION_JP */
74
75/* The warnings of the controller check. */
76#define CONTROLLER_WARNING_NO_CONTROLLER 0
77#define CONTROLLER_WARNING_NO_PAK 1
78#define CONTROLLER_WARNING_FOREIGN_PAK 2
79
90
100
110
115extern Model *g_pSplashProducerLogo;
116
123extern Model *g_pSplashDeveloperLogo;
125
134
141extern Model *g_pSplashTitleModelB;
142
148extern Model *g_pSplashTitleModelD;
149
155extern Model *g_pSplashTitleModelC;
157
166extern f32 g_fSplashTime;
167
177
185extern s8 *g_pSplashSoundA;
187
197
205extern s8 *g_pSplashSoundB;
207
219
227extern s32 g_dwSplashFirstLogoSoundA;
228
235extern s32 g_bSplashFirstLogoSoundB;
236
240extern s32 g_dwSplashProducerVoice;
241
245extern s32 g_dwSplashProducerSoundA;
246
250extern s32 g_bSplashProducerSoundB;
251
258extern s32 g_dwSplashDeveloperVoice;
259
266extern s32 g_dwSplashDeveloperSoundA;
267
274extern s32 g_bSplashDeveloperSoundB;
276
285extern s32 g_bSplashSkipped;
286
296
306
316
317#ifdef __cplusplus
318}
319#endif
320
321#endif /* COASTLINE_SPLASH_H */
The graphics binary interface types the gu routines fill in for the RSP microcode.
The models of the menus and splash screens: loading, animating and drawing them.
s32 g_bSplashFadingOut
Whether the splash screens fade out.
u8 g_bControllerCheckStarted
Whether the controller check has loaded its pictures.
u16 g_awSplashTitlePalette[256]
The palette of the picture of the title, read from the cartridge.
u32 g_dwSplashSoundALength
The sound a logo makes as it flies in and leaves, and its length.
f32 g_fSplashTime
The time since the splash screens started, in seconds.
u8 g_bControllerWarningType
What the controller check warns of, as the CONTROLLER_WARNING_ values: no controller,...
Model * g_pSplashTitleModelA
The parts of the title, in the order they show.
void ProcessControllerCheck(void)
Run one frame of the warning about the controller or the Controller Pak.
Texture g_SplashTitleLogoTexture
The picture of the title the Japanese release shows in place of the models of the title.
Ambient g_SplashAmbientLight
The lights of the logos.
Model * g_pSplashFirstLogo
The logos, in the order they show.
s32 g_bSplashStarted
Whether the splash screens have loaded their models and sounds.
s32 g_dwSplashFirstLogoVoice
For each logo: the channel of the sound it makes as it leaves, how far its first sound has gone (1 on...
s32 g_bSplashSkipped
Whether a player skipped the splash screens, which then lead to the main menu.
u32 g_dwSplashSoundBLength
The second sound a logo makes as it flies in, and its length.
void ProcessSplashScreens(void)
Run one frame of the splash screens.
void AnimateSplashModels(void)
Animate the models of the splash screens when the frame before is drawn.
A model loaded from the cartridge, with its display lists and the animations of its parts.
Definition model.h:91
A compressed texture of the cartridge and the memory it is loaded into.
Definition texrect.h:16
The textures of the interface and their drawing as rectangles of the screen.
Integer and floating-point types of libultra.
unsigned int u32
Definition ultratypes.h:20
signed char s8
Definition ultratypes.h:23
float f32
Definition ultratypes.h:38
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18
An ambient light, aligned for the RSP.
Definition gbi.h:439
A directional light, aligned for the RSP.
Definition gbi.h:33