coastline 0.0.4
Loading...
Searching...
No Matches
modeldisplaylist.h File Reference
Include dependency graph for modeldisplaylist.h:

Go to the source code of this file.

Macros

#define SetModelTiles()
 Set up the tiles of the textures of a model: the load tile and the two render tiles.
#define SetModelTextures()
 Turn the textures on at full scale and set up the tiles.

Functions

static void DrawModelDisplayList (DisplayListCommand *displayList)
 Draw a display list of the current model when it has one.
static void SetVehicleLightColors (u32 dir, u32 ambient)
 Set the colours of the light of the sun and of the ambient light.

Macro Definition Documentation

◆ SetModelTiles

#define SetModelTiles ( )
Value:
{ \
gDPSetTile(gDisplayListPtr++, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
0); \
gDPSetTile( \
gDisplayListPtr++, G_IM_FMT_RGBA, G_IM_SIZ_4b, 0, 0x1F0, 6, 0, 0, 0, 0, 0, 0, 0); \
gDPSetTile( \
gDisplayListPtr++, G_IM_FMT_RGBA, G_IM_SIZ_4b, 0, 0x100, 5, 0, 0, 0, 0, 0, 0, 0); \
}
Gfx * gDisplayListPtr
The next command of the display list.
#define G_TX_LOADTILE
Definition gbi.h:354
#define G_IM_SIZ_4b
Definition gbi.h:334
#define G_IM_FMT_RGBA
Definition gbi.h:330
#define G_IM_SIZ_16b
Definition gbi.h:336

Set up the tiles of the textures of a model: the load tile and the two render tiles.

◆ SetModelTextures

#define SetModelTextures ( )
Value:
{ \
gSPTexture(gDisplayListPtr++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON); \
gSPClearGeometryMode(gDisplayListPtr++, G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR); \
gDPTileSync(gDisplayListPtr++); \
SetModelTiles(); \
}
#define G_ON
Definition gbi.h:359
#define G_TEXTURE_GEN_LINEAR
Definition gbi.h:202
#define G_TEXTURE_GEN
Definition gbi.h:201
#define G_TX_RENDERTILE
Definition gbi.h:353

Turn the textures on at full scale and set up the tiles.

Function Documentation

◆ DrawModelDisplayList()

void DrawModelDisplayList ( DisplayListCommand * displayList)
inlinestatic

Draw a display list of the current model when it has one.

◆ SetVehicleLightColors()

void SetVehicleLightColors ( u32 dir,
u32 ambient )
inlinestatic

Set the colours of the light of the sun and of the ambient light.