|
coastline 0.0.4
|
The drawing of the vehicles: their models, wheels, lights, reflections and dents. More...
#include <PR/gbi.h>#include <PR/ultratypes.h>#include "common/vecmath.h"#include "common/vehicle.h"#include "common/vehicledeform.h"#include "common/vehicleview.h"
Go to the source code of this file.
Functions | |
| void | TransformWheelPositions (s32 index) |
| Place the four wheels of a vehicle: each takes the axes of the vehicle and the position of its wheel in the model, carried by the vehicle. | |
| 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 in the snow. | |
| void | CheckVehicleVisibility (Vehicle *vehicle) |
| Decide whether a vehicle is drawn in the view being drawn, and set the fog at it. | |
| void | RenderVehicleModel (Vehicle *vehicle, s32 lodOffset) |
| Draw a vehicle: its level of detail, lights, lit parts, underside, near details, specular highlight, the reflection of the sky on its paint, and its wheels. | |
| 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 shine at the camera. | |
| void | DrawCarStageDisc (Vehicle *vehicle) |
| Draw the white disc of the stage of the cars, building its fan and its matrix on the first frame. | |
| void | DrawCarStageChoiceMarker (Vehicle *vehicle) |
| Draw the choice marker of the stage of the cars, with the matrix DrawCarStageDisc() builds. | |
| void | DrawCarStageShadow (Vehicle *vehicle) |
| Draw the shadow of a car on the stage of a menu, sized to its car. | |
Variables | |
| f32 | g_fConstInv255_802a9ed4 |
| Scale from byte model coordinates to world coordinates. | |
| f32 | g_fConst0p1_802a9ed8 |
| The near detail blend threshold. | |
| f32 | g_fConst1em4_802a9edc |
| The minimum light vector length. | |
| f32 | g_fConstInvPi_802a9ee0 |
| Convert an angular difference in radians to a proportion of pi. | |
| VehicleModel * | g_pCurrentVehicleModelData |
| The model of the vehicle being drawn. | |
| f32 | g_mtxVehicleModelScaled [4][4] |
| The matrix of the vehicle being drawn, scaled to its model. | |
| u32 | g_dwVehicleOtherModeLBlend |
| The blender part of the render mode of the vehicle being drawn, and its other flags. | |
| u32 | g_dwVehicleOtherModeLFlags |
| The render-mode flags applied when drawing a vehicle. | |
| s32 | g_dwVehicleFogAlpha |
| The alpha of the fog colour that fades a ghost vehicle. | |
| s32 | g_adwVehicleInViewRange [MAX_VEHICLES] |
| Whether each vehicle is drawn in the view being drawn. | |
| s32 | g_anVehicleLod [MAX_VEHICLES] |
| The level of detail each vehicle is drawn at. | |
| Mtx * | g_apVehicleModelMatrix [MAX_VEHICLES] |
| The matrix of each vehicle, scaled to its model. | |
| Mtx * | g_apVehicleLightMatrix [MAX_VEHICLES] |
| The matrix of each vehicle with the view and projection, forced for its lighting. | |
| Lights1 | g_aVehicleLights [MAX_VEHICLES] |
| The lights of each vehicle at night or in the rain. | |
| Vec3f | g_vecVehicleLightDir |
| The direction of the light on the vehicle being drawn. | |
| Vec3f | g_vecVehicleHiliteDir |
| The direction of the specular highlight: halfway between the light and the camera. | |
| u16 | g_awVehicleShadePalette [16] |
| The palette the textured parts of the cars share. | |
| s32 | g_bForceVehicleAltVariant |
| Whether every vehicle is drawn in its other look, as Vehicle.otherLook draws one. | |
| s32 | g_bVehicleEnvMapLinearTexGen |
| Whether the reflection of the sky takes its coordinates linearly from the normals. | |
| 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. | |
| u8 | g_aVehicleNightHighlightTexture [] |
| The texture of a vehicle's night-time highlights. | |
| s32 | g_dwGameFrameCount |
| A count of frames; the fan of the speedometer needle is built while it is 0. | |
| Vtx | g_aCarStageDiscVertices [32] |
| The white disc of the stage of the cars of a menu: its centre and 30 points around it. | |
| Mtx | g_CarStageMtx |
| The scale and the turn of the disc and the choice marker of the stage of the cars. | |
| Gfx | g_aCarStageDiscDisplayList [] |
| The disc of the stage of the cars, a fan of shaded triangles drawn without the depth buffer. | |
| Gfx | g_aCarStageChoiceMarkerDisplayList [] |
| The choice marker of the stage of the cars: an arrow on each side of the disc, over its black shadow. | |
| Gfx | g_aCarStageShadowDisplayList [] |
| The shadow a car casts on the stage of a menu. | |
The drawing of the vehicles: their models, wheels, lights, reflections and dents.
| void TransformWheelPositions | ( | s32 | index | ) |
Place the four wheels of a vehicle: each takes the axes of the vehicle and the position of its wheel in the model, carried by the vehicle.
| index | The index of the vehicle in g_aVehicles. |
| 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 in the snow.
| vehicle | The vehicle. |
| void CheckVehicleVisibility | ( | Vehicle * | vehicle | ) |
Decide whether a vehicle is drawn in the view being drawn, and set the fog at it.
| vehicle | The vehicle. |
Draw a vehicle: its level of detail, lights, lit parts, underside, near details, specular highlight, the reflection of the sky on its paint, and its wheels.
| vehicle | The vehicle. |
| lodOffset | How many levels of detail coarser it is drawn, up to the coarsest. |
| 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 shine at the camera.
| vehicle | The vehicle. |
| void DrawCarStageDisc | ( | Vehicle * | vehicle | ) |
Draw the white disc of the stage of the cars, building its fan and its matrix on the first frame.
| vehicle | The vehicle, which is not used. |
| void DrawCarStageChoiceMarker | ( | Vehicle * | vehicle | ) |
Draw the choice marker of the stage of the cars, with the matrix DrawCarStageDisc() builds.
| vehicle | The vehicle, which is not used. |
| void DrawCarStageShadow | ( | Vehicle * | vehicle | ) |
Draw the shadow of a car on the stage of a menu, sized to its car.
| vehicle | The vehicle. |
|
extern |
Scale from byte model coordinates to world coordinates.
|
extern |
The near detail blend threshold.
|
extern |
The minimum light vector length.
|
extern |
Convert an angular difference in radians to a proportion of pi.
|
extern |
The model of the vehicle being drawn.
|
extern |
The matrix of the vehicle being drawn, scaled to its model.
|
extern |
The blender part of the render mode of the vehicle being drawn, and its other flags.
|
extern |
The render-mode flags applied when drawing a vehicle.
|
extern |
The alpha of the fog colour that fades a ghost vehicle.
|
extern |
Whether each vehicle is drawn in the view being drawn.
|
extern |
The level of detail each vehicle is drawn at.
|
extern |
The matrix of each vehicle, scaled to its model.
|
extern |
The matrix of each vehicle with the view and projection, forced for its lighting.
|
extern |
The lights of each vehicle at night or in the rain.
|
extern |
The direction of the light on the vehicle being drawn.
|
extern |
The direction of the specular highlight: halfway between the light and the camera.
|
extern |
The palette the textured parts of the cars share.
|
extern |
Whether every vehicle is drawn in its other look, as Vehicle.otherLook draws one.
|
extern |
Whether the reflection of the sky takes its coordinates linearly from the normals.
|
extern |
Whether the paint shop shows a car, which has no specular highlight.
|
extern |
The 64 by 64 texture of 4-bit intensities of the specular highlight, by day and by night.
|
extern |
The texture of a vehicle's night-time highlights.
|
extern |
A count of frames; the fan of the speedometer needle is built while it is 0.
|
extern |
The white disc of the stage of the cars of a menu: its centre and 30 points around it.
|
extern |
The scale and the turn of the disc and the choice marker of the stage of the cars.
|
extern |
The disc of the stage of the cars, a fan of shaded triangles drawn without the depth buffer.
|
extern |
The choice marker of the stage of the cars: an arrow on each side of the disc, over its black shadow.
|
extern |
The shadow a car casts on the stage of a menu.