coastline 0.0.4
Loading...
Searching...
No Matches
displaylistops.h File Reference
#include "common/track.h"
#include "common/types.h"
#include "common/renderbackend.h"
#include <PR/gbi.h>
Include dependency graph for displaylistops.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RENDER_MODE_ROWS   6
#define RENDER_MODE_TRANSLUCENT_ROW   3

Typedefs

typedef Gfx DisplayListCommand
 A display-list command in the Nintendo 64 renderer.

Functions

s32 ProcessDisplayList (DisplayListCommand *displayList, DisplayListCommand table[][4])
 Patch the render modes and the colour combines of a display list in place for the weather.
void ProcessAllDisplayLists (void)
 Patch the render modes of vehicle display lists and, on N64, track display lists.

Variables

DisplayListCommand g_aDlClearCombinePatch [1][2]
 The colour combine replaced in clear weather and its replacement.
DisplayListCommand g_aDlSnowTintCombines [2]
 The colour combines that the snow tints.
DisplayListCommand g_aaDlTrackRenderModes [RENDER_MODE_ROWS][4]
 The render modes of the track and of the vehicles.
DisplayListCommand g_aaDlGhostRenderModes [RENDER_MODE_ROWS][4]
 The render modes of the body of a ghost.
DisplayListCommand g_aaDlGhostWheelRenderModes [RENDER_MODE_ROWS][4]
 The render modes of the wheels of a ghost.
s32 g_bDisplayListSnowTint
 Whether ProcessDisplayList() tints the colour combines of the snow.

Macro Definition Documentation

◆ RENDER_MODE_ROWS

#define RENDER_MODE_ROWS   6

The rows of each table of render modes.

◆ RENDER_MODE_TRANSLUCENT_ROW

#define RENDER_MODE_TRANSLUCENT_ROW   3

The first row of a translucent render mode.

Typedef Documentation

◆ DisplayListCommand

A display-list command in the Nintendo 64 renderer.

Function Documentation

◆ ProcessDisplayList()

s32 ProcessDisplayList ( DisplayListCommand * displayList,
DisplayListCommand table[][4] )

Patch the render modes and the colour combines of a display list in place for the weather.

A render mode found in the first column of a table becomes the one of the column of the weather.

Parameters
displayListThe display list, or NULL.
tableThe render mode rows, with each mode first, then its replacements for the clear weather, for a weather, and for a weather with the rain or the night. The last three rows are translucent.
Returns
1 if a translucent render mode was found, 0 otherwise.
Ghidra address:
USA: 0x8021b72c
Ghidra address:
Asia: 0x8021B27C
Ghidra address:
EUR: 0x8021c868
Ghidra address:
JPN: 0x8021c138
Ghidra address:
BRD3D: 0x100341b3
Ghidra address:
BRGlide: 0x1002d864

◆ ProcessAllDisplayLists()

void ProcessAllDisplayLists ( void )

Patch the render modes of vehicle display lists and, on N64, track display lists.

Ghidra address:
USA: 0x8021b97c
Ghidra address:
Asia: 0x8021B4CC
Ghidra address:
EUR: 0x8021cab8
Ghidra address:
JPN: 0x8021c388
Ghidra address:
BRD3D: 0x100344d7
Ghidra address:
BRGlide: 0x1002db88

Variable Documentation

◆ g_aDlClearCombinePatch

DisplayListCommand g_aDlClearCombinePatch[1][2]
extern

The colour combine replaced in clear weather and its replacement.

Ghidra address:
USA: 0x8028ab88
Ghidra address:
Asia: 0x8028A6D8
Ghidra address:
EUR: 0x8028ce38
Ghidra address:
JPN: 0x8028c868
Ghidra address:
BRD3D: 0x100aa8b8
Ghidra address:
BRGlide: 0x100aa048

◆ g_aDlSnowTintCombines

DisplayListCommand g_aDlSnowTintCombines[2]
extern

The colour combines that the snow tints.

Ghidra address:
USA: 0x8028ab98
Ghidra address:
Asia: 0x8028A6E8
Ghidra address:
EUR: 0x8028ce48
Ghidra address:
JPN: 0x8028c878
Ghidra address:
BRD3D: 0x100aa8c8
Ghidra address:
BRGlide: 0x100aa058

◆ g_aaDlTrackRenderModes

DisplayListCommand g_aaDlTrackRenderModes[RENDER_MODE_ROWS][4]
extern

The render modes of the track and of the vehicles.

Ghidra address:
USA: 0x8028aba8
Ghidra address:
Asia: 0x8028A6F8
Ghidra address:
EUR: 0x8028ce58
Ghidra address:
JPN: 0x8028c888
Ghidra address:
BRD3D: 0x100aa8d8
Ghidra address:
BRGlide: 0x100aa068

◆ g_aaDlGhostRenderModes

DisplayListCommand g_aaDlGhostRenderModes[RENDER_MODE_ROWS][4]
extern

The render modes of the body of a ghost.

Ghidra address:
USA: 0x8028ac68
Ghidra address:
Asia: 0x8028A7B8
Ghidra address:
EUR: 0x8028cf18
Ghidra address:
JPN: 0x8028c948
Ghidra address:
BRD3D: 0x100aa998
Ghidra address:
BRGlide: 0x100aa128

◆ g_aaDlGhostWheelRenderModes

DisplayListCommand g_aaDlGhostWheelRenderModes[RENDER_MODE_ROWS][4]
extern

The render modes of the wheels of a ghost.

Ghidra address:
USA: 0x8028ad28
Ghidra address:
Asia: 0x8028A878
Ghidra address:
EUR: 0x8028cfd8
Ghidra address:
JPN: 0x8028ca08
Ghidra address:
BRD3D: 0x100aaa58
Ghidra address:
BRGlide: 0x100aa1e8

◆ g_bDisplayListSnowTint

s32 g_bDisplayListSnowTint
extern

Whether ProcessDisplayList() tints the colour combines of the snow.

It clears this.

Ghidra address:
USA: 0x8028ade8
Ghidra address:
Asia: 0x8028A938
Ghidra address:
EUR: 0x8028d098
Ghidra address:
JPN: 0x8028cac8
Ghidra address:
BRD3D: 0x106c666c
Ghidra address:
BRGlide: 0x106ed6fc