head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.26; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.26; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @
Defines | |
#define | PA_EnableBgMosaic(screen, bg) _REG16(REG_BGCNT(screen, bg)) |= (1 << 6) |
Enable the mosaic effect for a given background | |
#define | PA_DisableBgMosaic(screen, bg) _REG16(REG_BGCNT(screen, bg)) &= ~(1 << 6) |
Disable the mosaic effect for a given background | |
#define | PA_SetBgMosaicXY(screen, h_size, v_size) {REG_MOSAIC(screen) &= 255; REG_MOSAIC(screen) |= (h_size + (v_size << 4));} |
Set the Mosaic parameters for the backgrounds | |
#define | PA_SetSpriteMosaicXY(screen, h_size, v_size) {REG_MOSAIC(screen) &= (255 << 8); REG_MOSAIC(screen) |= ((h_size << 8) + (v_size << 12));} |
Set the Mosaic parameters for the sprites | |
#define | PA_EnableSpecialFx(screen, EffectType, FirstTarget, SecondTarget) REG_BLDCNT(screen) = (FirstTarget + (SecondTarget << 8) + (EffectType << 6)) |
Enable Special Effects and set whether backgrounds and sprites will use them or not. This also sets the type of Effect | |
#define | PA_DisableSpecialFx(screen) REG_BLDCNT(screen) = 0 |
Disable Special Effects | |
#define | PA_SetSFXAlpha(screen, Coeff1, Coeff2) REG_BLDALPHA(screen) = Coeff1 + (Coeff2 << 8) |
Set the special effect parameters for Alpha-Blending |
|
Disable the mosaic effect for a given background
|
|
Disable Special Effects
|
|
Enable the mosaic effect for a given background
|
|
Enable Special Effects and set whether backgrounds and sprites will use them or not. This also sets the type of Effect
|
|
Set the Mosaic parameters for the backgrounds
|
|
Set the special effect parameters for Alpha-Blending
|
|
Set the Mosaic parameters for the sprites
|