1#ifndef COASTLINE_VEHICLEMODEL_H
2#define COASTLINE_VEHICLEMODEL_H
14#define VEHICLE_WHEELS 4
25#define VEHICLE_DISPLAY_LISTS 10
36#define VEHICLE_MATERIALS 12
37#define VEHICLE_MATERIAL_PAINT 2
38#define VEHICLE_MATERIAL_HEADLIGHTS 10
39#define VEHICLE_MATERIAL_REAR_LIGHTS 11
58 s32 textureEntries[30];
59 s32 textureEntryCount;
60 s32 rearLightTextureEntry;
61 s32 lightTextureEntries[4];
91 u16 dashboardPalettes[2][256];
92 u8 dashboardImages[0x7b00];
259extern s32 g_dwTextureCaptureOverflowCount;
268void AppendVehicleModelTextureEntry(
s32 entry);
278s32 IsVehicleMaterialPalette(
const void *palette);
#define CAR_GEAR_RATIOS
The gears of a gearbox, neutral first.
Definition carphysics.h:11
The state the renderer shares between the parts of a frame.
Gfx DisplayListCommand
A display-list command in the Nintendo 64 renderer.
Definition displaylistops.h:21
Pointers of 32 bits in the data the game reads from files and in its display lists.
#define TGR_PTR(T)
A pointer of 32 bits to T.
Definition ptr32.h:152
A texture of a model and its palette.
Definition render.h:63
A point or direction in space.
Definition vecmath.h:17
The model of a car as it is loaded from the cartridge.
Definition vehiclemodel.h:55
s32 textureCount
Definition vehiclemodel.h:103
void * unreconstructed90
Definition vehiclemodel.h:110
f32 cockpitUp
Definition vehiclemodel.h:118
void * unreconstructed94
Definition vehiclemodel.h:113
u8 unreconstructed4[0x10 - 0x4]
Definition vehiclemodel.h:101
u8 unreconstructed98[0xB0 - 0x98]
Definition vehiclemodel.h:115
u32 triangleCount
Definition vehiclemodel.h:95
Vec3f wheels[VEHICLE_WHEELS]
Definition vehiclemodel.h:125
DisplayListCommand * displayLists[VEHICLE_LODS][VEHICLE_DISPLAY_LISTS]
Definition vehiclemodel.h:106
u8 ** decalMasks
Definition vehiclemodel.h:132
f32 mirrorForward
Definition vehiclemodel.h:117
u8 materialTextures[VEHICLE_MATERIALS]
Definition vehiclemodel.h:129
DisplayListCommand * wheelDisplayLists[VEHICLE_LODS][VEHICLE_WHEEL_DISPLAY_LISTS]
Definition vehiclemodel.h:120
u8 unreconstructed120[0xDF88 - 0x120]
Definition vehiclemodel.h:135
f32 cockpitForward
Definition vehiclemodel.h:116
ModelTexture * textures
Definition vehiclemodel.h:104
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
s32 IsVehicleModelValid(s32 car)
Whether the model of a car is on the cartridge.
@ TACHOMETER_BAR_DIMMED
Definition vehiclemodel.h:19
@ TACHOMETER_BAR_HIDDEN
Definition vehiclemodel.h:20
@ TACHOMETER_NEEDLE
Definition vehiclemodel.h:18
#define VEHICLE_LODS
Definition vehiclemodel.h:24
#define VEHICLE_WHEELS
The wheels of a vehicle.
Definition vehiclemodel.h:14
#define VEHICLE_DISPLAY_LISTS
Definition vehiclemodel.h:25
void FixupVehicleModelPointers(VehicleModel *model)
Relocate loaded model pointers on N64.
s32 g_adwVehicleModelSlotCars[]
The car whose model each slot holds.
void LoadCar(s32 slot, s32 car, void *source)
Load a car model into a slot, fix up its pointers, and record the car.
void SetMaterialColor(VehicleModel *model, s32 red, s32 green, s32 blue)
Paint the materials of a model a colour of 5 bits a channel.
@ VEHICLE_WHEEL_DL_NORMAL
Definition vehiclemodel.h:29
@ VEHICLE_WHEEL_DL_1
Definition vehiclemodel.h:30
@ VEHICLE_WHEEL_DISPLAY_LISTS
Definition vehiclemodel.h:32
@ VEHICLE_WHEEL_DL_SNOW
Definition vehiclemodel.h:31
VehicleModel g_aVehicleModels[]
The models of the cars the vehicles drive, in slots.
void LoadVehicleModelFromRom(VehicleModel *model, s32 car)
Load a car model from platform asset storage.
@ VEHICLE_DL_UNDERSIDE
Definition vehiclemodel.h:46
@ VEHICLE_DL_HEADLIGHT_BEAMS
Definition vehiclemodel.h:45
@ VEHICLE_DL_NEAR_DETAIL
Definition vehiclemodel.h:43
@ VEHICLE_DL_BODY
Definition vehiclemodel.h:44
@ VEHICLE_DL_HIGHLIGHTED
Definition vehiclemodel.h:48
@ VEHICLE_DL_TEXTURED
Definition vehiclemodel.h:47
#define VEHICLE_MATERIALS
Definition vehiclemodel.h:36