coastline 0.0.4
Loading...
Searching...
No Matches
vehicleview.h
Go to the documentation of this file.
1#ifndef COASTLINE_VEHICLE_VIEW_H
2#define COASTLINE_VEHICLE_VIEW_H
3
4#include <PR/ultratypes.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
19#if TGR_BOSS_RALLY
20typedef union VehicleReflectionTexture {
21 u8 *image;
22 unsigned entry;
23} VehicleReflectionTexture;
24#if TGR_PLATFORM != TGR_PLATFORM_SDL
26extern VehicleReflectionTexture g_apVehicleReflectionTextures[4];
27#endif
28#else
30#endif
31
41
52#if TGR_BOSS_RALLY
53#if TGR_PLATFORM != TGR_PLATFORM_SDL
55#endif
56#else
58#endif
59
71
72#if TGR_PLATFORM == TGR_PLATFORM_SDL
74typedef struct {
75 u8 daySky[2048];
76 u8 nightSky[2048];
77 VehicleReflectionTexture textures[4];
78 s8 selection[3][2];
80
83
85#define g_abDaySkyTexture (GetSdlVehicleReflections()->daySky)
86#define g_abNightSkyTexture (GetSdlVehicleReflections()->nightSky)
87#define g_apVehicleReflectionTextures (GetSdlVehicleReflections()->textures)
88#define g_abVehicleReflectionTexSelect (GetSdlVehicleReflections()->selection)
90#endif
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* COASTLINE_VEHICLE_VIEW_H */
Sky images and reflection descriptors for one SDL texture collection.
Definition vehicleview.h:74
u8 daySky[2048]
Definition vehicleview.h:75
VehicleReflectionTexture textures[4]
Definition vehicleview.h:77
s8 selection[3][2]
Definition vehicleview.h:78
u8 nightSky[2048]
Definition vehicleview.h:76
Integer and floating-point types of libultra.
signed char s8
Definition ultratypes.h:23
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18
u8 * g_apVehicleReflectionTextures[4]
The 32 by 128 textures of the reflection of the sky, of 4-bit colour indices, and their palettes.
s32 g_dwVehicleViewModeIndex
Set to 0 by the track menu.
u8 g_abVehicleReflectionTexSelect[4][2]
The reflection of each view mode, in the open and in a tunnel.
SdlVehicleReflections * GetSdlVehicleReflections(void)
u16 * g_apVehicleReflectionTluts[4]
The palettes of the four vehicle reflection textures.