50#ifndef OPENSNES_COLORMATH_H
51#define OPENSNES_COLORMATH_H
60#define COLORMATH_BG1 BIT(0)
63#define COLORMATH_BG2 BIT(1)
66#define COLORMATH_BG3 BIT(2)
69#define COLORMATH_BG4 BIT(3)
72#define COLORMATH_OBJ BIT(4)
75#define COLORMATH_BACKDROP BIT(5)
78#define COLORMATH_ALL 0x3F
85#define COLORMATH_ADD 0
88#define COLORMATH_SUB 1
95#define COLORMATH_SRC_SUBSCREEN 0
98#define COLORMATH_SRC_FIXED 1
105#define COLORMATH_ALWAYS 0
108#define COLORMATH_INSIDE 1
111#define COLORMATH_OUTSIDE 2
114#define COLORMATH_NEVER 3
121#define COLDATA_RED 0x20
124#define COLDATA_GREEN 0x40
127#define COLDATA_BLUE 0x80
130#define COLDATA_ALL (COLDATA_RED | COLDATA_GREEN | COLDATA_BLUE)
void colorMathSetCondition(u8 condition)
Set when color math is enabled (window control)
void colorMathEnable(u8 layers)
Enable color math for specified layers.
void colorMathShadow(u8 layers, u8 intensity)
Set up shadow/darkening effect.
void colorMathTransparency50(u8 layers)
Set up 50% transparency for layers.
void colorMathSetBrightness(u8 brightness)
Set brightness for fade effects.
void colorMathSetFixedColor(u8 r, u8 g, u8 b)
Set fixed color for blending.
void colorMathSetHalf(u8 enable)
Enable or disable half mode.
void colorMathSetOp(u8 op)
Set color math operation (add or subtract)
void colorMathTint(u8 layers, u8 r, u8 g, u8 b)
Set up color tint effect.
void colorMathDisable(void)
Disable all color math.
void colorMathInit(void)
Initialize color math to defaults.
void colorMathSetSource(u8 source)
Set color math source.
void colorMathSetChannel(u8 channel, u8 intensity)
Set a single fixed color channel.
static u16 b
Definition main.c:157
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:46