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

Go to the source code of this file.

Functions

static u16 PackMaterialPaletteColor (u16 color)
static s32 GetMaterialTextureFormat (const ModelTexture *texture)
static void SetMaterialPaletteColors (VehicleModel *model, s32 red, s32 green, s32 blue)
 Set the material palettes of model to the requested red, green, and blue colour.

Function Documentation

◆ PackMaterialPaletteColor()

u16 PackMaterialPaletteColor ( u16 color)
inlinestatic
Returns
color in the byte order used by the selected renderer.

◆ GetMaterialTextureFormat()

s32 GetMaterialTextureFormat ( const ModelTexture * texture)
inlinestatic
Returns
The indexed or direct format of texture.

◆ SetMaterialPaletteColors()

void SetMaterialPaletteColors ( VehicleModel * model,
s32 red,
s32 green,
s32 blue )
inlinestatic

Set the material palettes of model to the requested red, green, and blue colour.