sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw_blending.h File Reference
#include <tamtypes.h>

Go to the source code of this file.

Classes

struct  blend_t

Macros

#define BLEND_COLOR_SOURCE   0
#define BLEND_COLOR_DEST   1
#define BLEND_COLOR_ZERO   2
#define BLEND_ALPHA_SOURCE   0
#define BLEND_ALPHA_DEST   1
#define BLEND_ALPHA_FIXED   2
#define ALPHA_CORRECT_RGBA32   0
#define ALPHA_CORRECT_RGBA16   1

Functions

qword_t * draw_pixel_alpha_control (qword_t *q, int enable)
qword_t * draw_alpha_blending (qword_t *q, int context, blend_t *blend)
qword_t * draw_alpha_correction (qword_t *q, int context, int alpha)

Detailed Description

Draw library blending functions

Definition in file draw_blending.h.

Macro Definition Documentation

◆ ALPHA_CORRECT_RGBA16

#define ALPHA_CORRECT_RGBA16   1

Definition at line 25 of file draw_blending.h.

◆ ALPHA_CORRECT_RGBA32

#define ALPHA_CORRECT_RGBA32   0

Alpha Correction

Definition at line 24 of file draw_blending.h.

◆ BLEND_ALPHA_DEST

#define BLEND_ALPHA_DEST   1

Definition at line 20 of file draw_blending.h.

◆ BLEND_ALPHA_FIXED

#define BLEND_ALPHA_FIXED   2

Definition at line 21 of file draw_blending.h.

◆ BLEND_ALPHA_SOURCE

#define BLEND_ALPHA_SOURCE   0

Definition at line 19 of file draw_blending.h.

◆ BLEND_COLOR_DEST

#define BLEND_COLOR_DEST   1

Definition at line 16 of file draw_blending.h.

◆ BLEND_COLOR_SOURCE

#define BLEND_COLOR_SOURCE   0

Alpha Blending

Definition at line 15 of file draw_blending.h.

◆ BLEND_COLOR_ZERO

#define BLEND_COLOR_ZERO   2

Definition at line 17 of file draw_blending.h.

Function Documentation

◆ draw_alpha_blending()

qword_t * draw_alpha_blending ( qword_t * q,
int context,
blend_t * blend )
extern

Alpha Blending

Definition at line 20 of file draw_environment.c.

◆ draw_alpha_correction()

qword_t * draw_alpha_correction ( qword_t * q,
int context,
int alpha )
extern

Alpha Correction

Definition at line 176 of file draw_environment.c.

◆ draw_pixel_alpha_control()

qword_t * draw_pixel_alpha_control ( qword_t * q,
int enable )
extern

Alpha Blending Per-Pixel MSB Control

Definition at line 8 of file draw_environment.c.