sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw_tests.h
Go to the documentation of this file.
1
6
7#ifndef __DRAW_TESTS_H__
8#define __DRAW_TESTS_H__
9
10#include <tamtypes.h>
11#include <draw_buffers.h>
12
13/*& Alpha Testing */
14#define ATEST_METHOD_ALLFAIL 0
15#define ATEST_METHOD_ALLPASS 1
16#define ATEST_METHOD_LESS 2
17#define ATEST_METHOD_LESS_EQUAL 3
18#define ATEST_METHOD_EQUAL 4
19#define ATEST_METHOD_GREATER_EQUAL 5
20#define ATEST_METHOD_GREATER 6
21#define ATEST_METHOD_NOTEQUAL 7
22
23#define ATEST_KEEP_ALL 0
24#define ATEST_KEEP_ZBUFFER 1
25#define ATEST_KEEP_FRAMEBUFFER 2
26#define ATEST_KEEP_ALPHA 3
27
29#define DTEST_METHOD_PASS_ZERO 0
30#define DTEST_METHOD_PASS_ONE 1
31
33#define ZTEST_METHOD_ALLFAIL 0
34#define ZTEST_METHOD_ALLPASS 1
35#define ZTEST_METHOD_GREATER_EQUAL 2
36#define ZTEST_METHOD_GREATER 3
37
38typedef struct {
39 unsigned char enable;
40 unsigned char method;
41 unsigned char compval;
42 unsigned char keep;
43} atest_t;
44
45typedef struct {
46 unsigned char enable;
47 unsigned char pass;
48} dtest_t;
49
50typedef struct {
51 unsigned char enable;
52 unsigned char method;
53} ztest_t;
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
60extern qword_t *draw_scissor_area(qword_t *q, int context, int x0, int x1, int y0, int y1);
61
63extern qword_t *draw_pixel_test(qword_t *q, int context, atest_t *atest, dtest_t *dtest, ztest_t *ztest);
64
66extern qword_t *draw_disable_tests(qword_t *q, int context, zbuffer_t *z);
67
69extern qword_t *draw_enable_tests(qword_t *q, int context, zbuffer_t *z);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* __DRAW_TESTS_H__ */
qword_t * draw_enable_tests(qword_t *q, int context, zbuffer_t *z)
Definition draw.c:135
qword_t * draw_scissor_area(qword_t *q, int context, int x0, int x1, int y0, int y1)
qword_t * draw_disable_tests(qword_t *q, int context, zbuffer_t *z)
Definition draw.c:120
qword_t * draw_pixel_test(qword_t *q, int context, atest_t *atest, dtest_t *dtest, ztest_t *ztest)