|
coastline 0.0.4
|
The model of a car as it is loaded from the cartridge. More...
#include <vehiclemodel.h>

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] |
The model of a car as it is loaded from the cartridge.
Its fields join this structure as they are reconstructed.
| u32 VehicleModel::triangleCount |
The triangles of the model, counted into the statistics of the frame.
| u8 VehicleModel::unreconstructed4[0x10 - 0x4] |
Not read by the routines reconstructed so far.
| s32 VehicleModel::textureCount |
The number of textures of the model.
| ModelTexture* VehicleModel::textures |
The textures of the model, textureCount of them.
| DisplayListCommand* VehicleModel::displayLists[VEHICLE_LODS][VEHICLE_DISPLAY_LISTS] |
The display lists of each level of detail, by the VEHICLE_DL_ values.
| void* VehicleModel::unreconstructed90 |
An offset turned into a pointer with the rest, not read by the routines reconstructed so far.
| void* VehicleModel::unreconstructed94 |
An offset turned into a pointer with the rest, not read by the routines reconstructed so far.
| u8 VehicleModel::unreconstructed98[0xB0 - 0x98] |
Not read by the routines reconstructed so far.
| f32 VehicleModel::cockpitForward |
How far forward of the vehicle the cockpit camera sits.
| f32 VehicleModel::mirrorForward |
Half of how far forward of the vehicle the mirror camera sits.
| f32 VehicleModel::cockpitUp |
How far above the vehicle the cockpit and mirror cameras sit.
| 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.
| 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.
| u8 VehicleModel::materialTextures[VEHICLE_MATERIALS] |
The textures whose palettes the colours of the car are set in, by the VEHICLE_MATERIAL_ values.
| 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.
| u8 VehicleModel::unreconstructed120[0xDF88 - 0x120] |
The rest of the loaded model, not read as fields by the routines reconstructed so far.