sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
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
27
typedef
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
36
extern
"C"
{
37
#endif
38
40
extern
qword_t *
draw_pixel_alpha_control
(qword_t *q,
int
enable);
41
43
extern
qword_t *
draw_alpha_blending
(qword_t *q,
int
context,
blend_t
*blend);
44
46
extern
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__ */
draw_pixel_alpha_control
qword_t * draw_pixel_alpha_control(qword_t *q, int enable)
Definition
draw_environment.c:8
draw_alpha_correction
qword_t * draw_alpha_correction(qword_t *q, int context, int alpha)
Definition
draw_environment.c:176
draw_alpha_blending
qword_t * draw_alpha_blending(qword_t *q, int context, blend_t *blend)
Definition
draw_environment.c:20
blend_t
Definition
draw_blending.h:27
tamtypes.h
core
draw
include
draw_blending.h
Generated by
1.18.0