coastline 0.0.4
Loading...
Searching...
No Matches
trackdisplaylist.h
Go to the documentation of this file.
1#ifndef COASTLINE_TRACKDISPLAYLIST_H
2#define COASTLINE_TRACKDISPLAYLIST_H
3
5
6#if TGR_BOSS_RALLY
7#include "common/combine.h"
8#endif
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15static inline void SetTrackCombiner(DisplayListCommand *pkt) {
16#if TGR_BOSS_RALLY
18 1000 + G_CCMUX_TEXEL1,
19 1000 + G_CCMUX_TEXEL0,
21 1000 + G_CCMUX_TEXEL0,
22 1000 + G_ACMUX_TEXEL1,
23 1000 + G_ACMUX_TEXEL0,
25 1000 + G_ACMUX_TEXEL0,
26 1000 + G_CCMUX_COMBINED,
27 0,
28 1000 + G_CCMUX_SHADE,
29 0,
30 0,
31 0,
32 0,
33 1000 + G_ACMUX_COMBINED);
34#else
36 TEXEL1,
37 TEXEL0,
38 LOD_FRACTION,
39 TEXEL0,
40 TEXEL1,
41 TEXEL0,
42 LOD_FRACTION,
43 TEXEL0,
44 COMBINED,
45 0,
46 SHADE,
47 0,
48 0,
49 0,
50 0,
51 COMBINED);
52#endif /* TGR_BOSS_RALLY */
53}
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* COASTLINE_TRACKDISPLAYLIST_H */
void PackCombineMode(GbiCommand *pCommand, int nColorA0, int nColorB0, int nColorC0, int nColorD0, int nAlphaA0, int nAlphaB0, int nAlphaC0, int nAlphaD0, int nColorA1, int nColorB1, int nColorC1, int nColorD1, int nAlphaA1, int nAlphaB1, int nAlphaC1, int nAlphaD1)
Build the command that sets the combine mode of two cycles from the inputs of the colour combiner,...
Gfx DisplayListCommand
A display-list command in the Nintendo 64 renderer.
Definition displaylistops.h:21
#define G_CCMUX_TEXEL1
Definition gbi.h:307
#define gDPSetCombineLERP( pkt, a0, b0, c0, d0, Aa0, Ab0, Ac0, Ad0, a1, b1, c1, d1, Aa1, Ab1, Ac1, Ad1)
Set the colour combiner from the a, b, c and d inputs of (a - b) * c + d for each cycle.
Definition gbi.h:682
#define G_ACMUX_TEXEL0
Definition gbi.h:321
#define G_CCMUX_TEXEL0
Definition gbi.h:306
#define G_ACMUX_COMBINED
Definition gbi.h:319
#define G_CCMUX_COMBINED
Definition gbi.h:305
#define G_ACMUX_TEXEL1
Definition gbi.h:322
#define G_CCMUX_SHADE
Definition gbi.h:309
#define G_CCMUX_LOD_FRACTION
Definition gbi.h:315
static void SetTrackCombiner(DisplayListCommand *pkt)
Set the combiner of the track: the two levels of a texture mixed and then shaded.
Definition trackdisplaylist.h:15