coastline 0.0.4
Loading...
Searching...
No Matches
particlecommands.h File Reference
#include "common/system.h"
#include "common/weather.h"
Include dependency graph for particlecommands.h:

Go to the source code of this file.

Macros

#define LoadParticleTextureImage()
 Load the particle image and configure its rendering tile.
#define ConfigureParticleTexture()
 Configure the particle texture for primitive-colour rectangles.
#define ConfigureExhaustParticleTexture()
 Reuse the particle texture setup for exhaust particles.
#define RestoreParticleModes()
 Restore the texture and depth modes used after particle rendering.

Macro Definition Documentation

◆ LoadParticleTextureImage

#define LoadParticleTextureImage ( )

Load the particle image and configure its rendering tile.

◆ ConfigureParticleTexture

#define ConfigureParticleTexture ( )
Value:
gDPSetCycleType(gDisplayListPtr++, G_CYC_1CYCLE); \
gSPTexture(gDisplayListPtr++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON); \
gDPSetTextureFilter(gDisplayListPtr++, g_dwTextureFilterMode); \
gDPSetCombineLERP(gDisplayListPtr++, \
0, \
0, \
0, \
PRIMITIVE, \
TEXEL0, \
0, \
PRIMITIVE, \
0, \
0, \
0, \
0, \
PRIMITIVE, \
TEXEL0, \
0, \
PRIMITIVE, \
0); \
LoadParticleTextureImage()
u32 g_dwTextureFilterMode
The texture filter of the other modes.
Gfx * gDisplayListPtr
The next command of the display list.
#define G_ON
Definition gbi.h:359
#define gDPPipeSync(pkt)
Wait for the RDP pipeline to drain before a mode changes.
Definition gbi.h:603
#define G_TX_RENDERTILE
Definition gbi.h:353
#define G_CYC_1CYCLE
Definition gbi.h:222

Configure the particle texture for primitive-colour rectangles.

◆ ConfigureExhaustParticleTexture

#define ConfigureExhaustParticleTexture ( )
Value:
#define ConfigureParticleTexture()
Configure the particle texture for primitive-colour rectangles.
Definition particlecommands.h:100

Reuse the particle texture setup for exhaust particles.

◆ RestoreParticleModes

#define RestoreParticleModes ( )
Value:
gDPSetTexturePersp(gDisplayListPtr++, G_TP_PERSP); \
gDPSetDepthSource(gDisplayListPtr++, G_ZS_PIXEL); \
gDPSetColorDither(gDisplayListPtr++, g_dwColorDitherMode); \
gDPSetAlphaDither(gDisplayListPtr++, g_dwAlphaDitherMode); \
gDPSetAlphaCompare(gDisplayListPtr++, G_AC_THRESHOLD)
#define G_AC_THRESHOLD
Definition gbi.h:229
#define G_ZS_PIXEL
Definition gbi.h:231
#define G_TP_PERSP
Definition gbi.h:243
u32 g_dwAlphaDitherMode
The alpha dither the screens draw with, as the other-mode bits gDPSetAlphaDither() takes.
u32 g_dwColorDitherMode
The color dither the screens draw with, as the other-mode bits gDPSetColorDither() takes.

Restore the texture and depth modes used after particle rendering.