sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw_blending.h
Go to the documentation of this file.
1
6
7#ifndef __DRAW_BLENDING_H__
8#define __DRAW_BLENDING_H__
9
10#include <tamtypes.h>
11
12// color = (c1-c2)*a>>7 + c3
13
15#define BLEND_COLOR_SOURCE 0
16#define BLEND_COLOR_DEST 1
17#define BLEND_COLOR_ZERO 2
18
19#define BLEND_ALPHA_SOURCE 0
20#define BLEND_ALPHA_DEST 1
21#define BLEND_ALPHA_FIXED 2
22
24#define ALPHA_CORRECT_RGBA32 0
25#define ALPHA_CORRECT_RGBA16 1
26
27typedef struct {
28 char color1;
29 char color2;
30 char alpha;
31 char color3;
32 unsigned char fixed_alpha;
33} blend_t;
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
40extern qword_t *draw_pixel_alpha_control(qword_t *q, int enable);
41
43extern qword_t *draw_alpha_blending(qword_t *q, int context, blend_t *blend);
44
46extern qword_t *draw_alpha_correction(qword_t *q, int context, int alpha);
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* __DRAW_BLENDING_H__ */
qword_t * draw_pixel_alpha_control(qword_t *q, int enable)
qword_t * draw_alpha_correction(qword_t *q, int context, int alpha)
qword_t * draw_alpha_blending(qword_t *q, int context, blend_t *blend)