98#ifndef OPENSNES_HDMA_H
99#define OPENSNES_HDMA_H
108#define HDMA_CHANNEL_0 0
110#define HDMA_CHANNEL_1 1
112#define HDMA_CHANNEL_2 2
114#define HDMA_CHANNEL_3 3
116#define HDMA_CHANNEL_4 4
118#define HDMA_CHANNEL_5 5
120#define HDMA_CHANNEL_6 6
123#define HDMA_CHANNEL_7 7
135#define HDMA_MODE_1REG 0x00
143#define HDMA_MODE_2REG 0x01
151#define HDMA_MODE_1REG_2X 0x02
159#define HDMA_MODE_2REG_2X 0x03
167#define HDMA_MODE_4REG 0x04
181#define HDMA_INDIRECT 0x40
188#define HDMA_DEST_CGADD 0x21
191#define HDMA_DEST_CGDATA 0x22
194#define HDMA_DEST_BG1HOFS 0x0D
197#define HDMA_DEST_BG1VOFS 0x0E
200#define HDMA_DEST_BG2HOFS 0x0F
203#define HDMA_DEST_BG2VOFS 0x10
206#define HDMA_DEST_BG3HOFS 0x11
209#define HDMA_DEST_BG3VOFS 0x12
212#define HDMA_DEST_WH0 0x26
215#define HDMA_DEST_WH1 0x27
218#define HDMA_DEST_COLDATA 0x32
221#define HDMA_DEST_INIDISP 0x00
224#define HDMA_DEST_M7A 0x1B
227#define HDMA_DEST_M7B 0x1C
230#define HDMA_DEST_M7C 0x1D
233#define HDMA_DEST_M7D 0x1E
static const BgAsset bg
Definition main.c:44
unsigned short u16
16-bit unsigned integer (0 to 65535)
Definition types.h:53
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
void hdmaWaveStop(void)
Stop wave effect and disable HDMA channel.
void hdmaWaveInit(void)
Initialize HDMA wave effect system.
void hdmaWaveH(u8 channel, u8 bg, u8 amplitude, u8 frequency)
Set up horizontal wave effect (water reflection).
void hdmaSetupIndirect(u8 channel, u8 mode, u8 destReg, const void *table, u8 dataBank)
Configure an INDIRECT HDMA channel (table of pointers to data).
void hdmaEnable(u8 channelMask)
Enable HDMA channel(s).
void hdmaGradient(u8 channel, const void *colorTable)
Set up a fixed color gradient effect.
void hdmaWaveUpdate(void)
Update wave animation.
void hdmaBrightnessGradient(u8 channel, u8 topBrightness, u8 bottomBrightness)
Create a vertical brightness gradient.
void hdmaIrisWipeStop(u8 channel)
Stop iris wipe effect and restore window registers.
void hdmaWaveSetSpeed(u8 speed)
Definition hdma.h:452
void hdmaSetTable(u8 channel, const void *table)
Update HDMA table pointer (for dynamic effects).
u8 hdmaGetEnabled(void)
Get currently enabled HDMA channels.
void hdmaColorGradient(u8 channel, u8 colorIndex, u16 topColor, u16 bottomColor)
Create a per-scanline CGRAM color gradient.
void hdmaWindowShape(u8 channel, const void *windowTable)
Set up window position HDMA for shape effects.
void hdmaSetupBank(u8 channel, u8 mode, u8 destReg, const void *table, u8 bank)
Set up an HDMA channel with explicit source bank byte.
u8 hdma_wave_speed
Set wave speed.
void hdmaDisable(u8 channelMask)
Disable HDMA channel(s).
void hdmaColorGradientStop(u8 channel)
Stop color gradient effect.
void hdmaSetup(u8 channel, u8 mode, u8 destReg, const void *table)
Set up an HDMA channel.
void hdmaIrisWipe(u8 channel, u8 layers, u8 centerX, u8 centerY, u8 radius)
Create a circular window mask (iris/spotlight effect).
void hdmaDisableAll(void)
Disable all HDMA channels.
void hdmaBrightnessGradientStop(u8 channel)
Stop brightness gradient and restore full brightness.
void hdmaParallax(u8 channel, u8 bg, const void *scrollTable)
Set up a background parallax scroll effect.
void hdmaWaterRipple(u8 channel, u8 bg, u8 amplitude, u8 speed)
Create a water ripple distortion effect.