53#ifndef OPENSNES_COLORMATH_H
54#define OPENSNES_COLORMATH_H
71#define COLORMATH_BACKDROP BIT(5)
74#define COLORMATH_ALL 0x3F
84#define COLORMATH_ADD 0
87#define COLORMATH_SUB 1
94#define COLORMATH_SRC_SUBSCREEN 0
97#define COLORMATH_SRC_FIXED 1
104#define COLORMATH_ALWAYS 0
107#define COLORMATH_INSIDE 1
110#define COLORMATH_OUTSIDE 2
113#define COLORMATH_NEVER 3
120#define COLDATA_RED 0x20
123#define COLDATA_GREEN 0x40
126#define COLDATA_BLUE 0x80
129#define COLDATA_ALL (COLDATA_RED | COLDATA_GREEN | COLDATA_BLUE)
void colorMathSetCondition(u8 condition)
Set when color math is enabled (window control).
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 colorMathSetDirectColor(u8 enable)
Enable or disable direct color mode (CGWSEL bit 0).
void colorMathSetLayers(u8 layers)
Set the layers colour math applies to — REPLACES the previous set.
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:156
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
SNES Hardware Register Definitions.