coastline 0.0.4
Loading...
Searching...
No Matches
VehicleModel Struct Reference

The model of a car as it is loaded from the cartridge. More...

#include <vehiclemodel.h>

Collaboration diagram for VehicleModel:

Public Attributes

u32 triangleCount
u8 unreconstructed4 [0x10 - 0x4]
s32 textureCount
ModelTexture * textures
DisplayListCommand * displayLists [VEHICLE_LODS][VEHICLE_DISPLAY_LISTS]
void * unreconstructed90
void * unreconstructed94
u8 unreconstructed98 [0xB0 - 0x98]
f32 cockpitForward
f32 mirrorForward
f32 cockpitUp
DisplayListCommand * wheelDisplayLists [VEHICLE_LODS][VEHICLE_WHEEL_DISPLAY_LISTS]
Vec3f wheels [VEHICLE_WHEELS]
u8 materialTextures [VEHICLE_MATERIALS]
u8 ** decalMasks
u8 unreconstructed120 [0xDF88 - 0x120]

Detailed Description

The model of a car as it is loaded from the cartridge.

Its fields join this structure as they are reconstructed.

Member Data Documentation

◆ triangleCount

u32 VehicleModel::triangleCount

The triangles of the model, counted into the statistics of the frame.

◆ unreconstructed4

u8 VehicleModel::unreconstructed4[0x10 - 0x4]

Not read by the routines reconstructed so far.

◆ textureCount

s32 VehicleModel::textureCount

The number of textures of the model.

◆ textures

ModelTexture* VehicleModel::textures

The textures of the model, textureCount of them.

◆ displayLists

DisplayListCommand* VehicleModel::displayLists[VEHICLE_LODS][VEHICLE_DISPLAY_LISTS]

The display lists of each level of detail, by the VEHICLE_DL_ values.

◆ unreconstructed90

void* VehicleModel::unreconstructed90

An offset turned into a pointer with the rest, not read by the routines reconstructed so far.

◆ unreconstructed94

void* VehicleModel::unreconstructed94

An offset turned into a pointer with the rest, not read by the routines reconstructed so far.

◆ unreconstructed98

u8 VehicleModel::unreconstructed98[0xB0 - 0x98]

Not read by the routines reconstructed so far.

◆ cockpitForward

f32 VehicleModel::cockpitForward

How far forward of the vehicle the cockpit camera sits.

◆ mirrorForward

f32 VehicleModel::mirrorForward

Half of how far forward of the vehicle the mirror camera sits.

◆ cockpitUp

f32 VehicleModel::cockpitUp

How far above the vehicle the cockpit and mirror cameras sit.

◆ wheelDisplayLists

DisplayListCommand* VehicleModel::wheelDisplayLists[VEHICLE_LODS][VEHICLE_WHEEL_DISPLAY_LISTS]

The display lists of a wheel at each level of detail, by the VEHICLE_WHEEL_DL_ values.

◆ wheels

Vec3f VehicleModel::wheels[VEHICLE_WHEELS]

Where the four wheels are drawn. The physics takes the second and the third as a front and a rear wheel of one side and mirrors them across, and the shadow is sized by the x and y of the first.

◆ materialTextures

u8 VehicleModel::materialTextures[VEHICLE_MATERIALS]

The textures whose palettes the colours of the car are set in, by the VEHICLE_MATERIAL_ values.

◆ decalMasks

u8* * VehicleModel::decalMasks

The masks of the materials that the paint shop paints, one bit a texel with a set bit protecting it, or NULL where every texel can be painted.

◆ unreconstructed120

u8 VehicleModel::unreconstructed120[0xDF88 - 0x120]

The rest of the loaded model, not read as fields by the routines reconstructed so far.


The documentation for this struct was generated from the following file: