1#ifndef COASTLINE_VEHICLERENDER_H
2#define COASTLINE_VEHICLERENDER_H
#define MAX_VEHICLES
The capacity of the race engine's vehicle array.
Definition bossrallyvehicle.h:23
The graphics binary interface types the gu routines fill in for the RSP microcode.
An ambient light and one directional light.
Definition gbi.h:445
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
A vehicle.
Definition vehicle.h:143
Integer and floating-point types of libultra.
unsigned int u32
Definition ultratypes.h:20
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
A display list command for the Fast3D microcode.
Definition gbi.h:132
A 4 by 4 matrix in s15.16 fixed point, with the integer halves before the fractions.
Definition gbi.h:16
A vertex for the RSP, with a colour or with a normal.
Definition gbi.h:75
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...
The vehicles of a race, the cars they are, and their place on the track.
u32 g_dwVehicleOtherModeLBlend
The blender part of the render mode of the vehicle being drawn, and its other flags.
s32 g_dwGameFrameCount
A count of frames; the fan of the speedometer needle is built while it is 0.
Mtx g_CarStageMtx
The scale and the turn of the disc and the choice marker of the stage of the cars.
void DrawCarStageShadow(Vehicle *vehicle)
Draw the shadow of a car on the stage of a menu, sized to its car.
Gfx g_aCarStageChoiceMarkerDisplayList[]
The choice marker of the stage of the cars: an arrow on each side of the disc, over its black shadow.
f32 g_fConstInvPi_802a9ee0
Convert an angular difference in radians to a proportion of pi.
s32 g_bVehicleEnvMapLinearTexGen
Whether the reflection of the sky takes its coordinates linearly from the normals.
u32 g_dwVehicleOtherModeLFlags
The render-mode flags applied when drawing a vehicle.
Vtx g_aCarStageDiscVertices[32]
The white disc of the stage of the cars of a menu: its centre and 30 points around it.
u8 g_aVehicleNightHighlightTexture[]
The texture of a vehicle's night-time highlights.
Mtx * g_apVehicleModelMatrix[MAX_VEHICLES]
The matrix of each vehicle, scaled to its model.
Vec3f g_vecVehicleLightDir
The direction of the light on the vehicle being drawn.
void TransformWheelPositions(s32 index)
Place the four wheels of a vehicle: each takes the axes of the vehicle and the position of its wheel ...
void DrawCarStageDisc(Vehicle *vehicle)
Draw the white disc of the stage of the cars, building its fan and its matrix on the first frame.
Mtx * g_apVehicleLightMatrix[MAX_VEHICLES]
The matrix of each vehicle with the view and projection, forced for its lighting.
u16 g_awVehicleShadePalette[16]
The palette the textured parts of the cars share.
void RenderVehicleModel(Vehicle *vehicle, s32 lodOffset)
Draw a vehicle: its level of detail, lights, lit parts, underside, near details, specular highlight,...
Gfx g_aCarStageShadowDisplayList[]
The shadow a car casts on the stage of a menu.
s32 g_adwVehicleInViewRange[MAX_VEHICLES]
Whether each vehicle is drawn in the view being drawn.
Gfx g_aCarStageDiscDisplayList[]
The disc of the stage of the cars, a fan of shaded triangles drawn without the depth buffer.
f32 g_mtxVehicleModelScaled[4][4]
The matrix of the vehicle being drawn, scaled to its model.
f32 g_fConst1em4_802a9edc
The minimum light vector length.
void RenderVehicleHeadlightBeams(Vehicle *vehicle)
Draw the beams of the headlights of a vehicle at night or in the rain, and glare the view when they s...
s32 g_bForceVehicleAltVariant
Whether every vehicle is drawn in its other look, as Vehicle.otherLook draws one.
VehicleModel * g_pCurrentVehicleModelData
The model of the vehicle being drawn.
void RenderWheelModels(Vehicle *vehicle)
Draw the four wheels of a vehicle, faded like a ghost when it is one, and with the wheel for the snow...
s32 g_bPaintShopPreviewActive
Whether the paint shop shows a car, which has no specular highlight.
u8 g_aVehicleHighlightTexture[]
The 64 by 64 texture of 4-bit intensities of the specular highlight, by day and by night.
Lights1 g_aVehicleLights[MAX_VEHICLES]
The lights of each vehicle at night or in the rain.
void DrawCarStageChoiceMarker(Vehicle *vehicle)
Draw the choice marker of the stage of the cars, with the matrix DrawCarStageDisc() builds.
f32 g_fConst0p1_802a9ed8
The near detail blend threshold.
Vec3f g_vecVehicleHiliteDir
The direction of the specular highlight: halfway between the light and the camera.
void CheckVehicleVisibility(Vehicle *vehicle)
Decide whether a vehicle is drawn in the view being drawn, and set the fog at it.
s32 g_dwVehicleFogAlpha
The alpha of the fog colour that fades a ghost vehicle.
f32 g_fConstInv255_802a9ed4
Scale from byte model coordinates to world coordinates.
s32 g_anVehicleLod[MAX_VEHICLES]
The level of detail each vehicle is drawn at.