sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
graph.h
Go to the documentation of this file.
1
6
7
#ifndef __GRAPH_H__
8
#define __GRAPH_H__
9
10
#include <
graph_vram.h
>
11
12
// Sets screen mode
14
#define GRAPH_MODE_AUTO 0
16
#define GRAPH_MODE_NTSC 1
18
#define GRAPH_MODE_PAL 2
20
#define GRAPH_MODE_HDTV_480P 3
22
#define GRAPH_MODE_HDTV_576P 4
24
#define GRAPH_MODE_HDTV_720P 5
26
#define GRAPH_MODE_HDTV_1080I 6
28
#define GRAPH_MODE_VGA_640_60 7
30
#define GRAPH_MODE_VGA_640_72 8
32
#define GRAPH_MODE_VGA_640_75 9
34
#define GRAPH_MODE_VGA_640_85 10
36
#define GRAPH_MODE_VGA_800_56 11
38
#define GRAPH_MODE_VGA_800_60 12
40
#define GRAPH_MODE_VGA_800_72 13
42
#define GRAPH_MODE_VGA_800_75 14
44
#define GRAPH_MODE_VGA_800_85 15
46
#define GRAPH_MODE_VGA_1024_60 16
48
#define GRAPH_MODE_VGA_1024_70 17
50
#define GRAPH_MODE_VGA_1024_75 18
52
#define GRAPH_MODE_VGA_1024_85 19
54
#define GRAPH_MODE_VGA_1280_60 20
56
#define GRAPH_MODE_VGA_1280_75 21
57
58
#define GRAPH_MODE_NONINTERLACED 0
59
#define GRAPH_MODE_INTERLACED 1
60
61
#define GRAPH_MODE_FIELD 0
62
#define GRAPH_MODE_FRAME 1
63
64
#define GRAPH_FIELD_EVEN 0
65
#define GRAPH_FIELD_ODD 1
66
68
#define GRAPH_DISABLE 0
69
#define GRAPH_ENABLE 1
70
72
#define GRAPH_GCONT_RGB 0
73
#define GRAPH_GCONT_YCRCB 1
74
75
#define GRAPH_CMOD_NTSC 2
76
#define GRAPH_CMOD_PAL 3
77
79
#define GRAPH_VALUE_RC1 0
80
#define GRAPH_VALUE_ALPHA 1
81
83
#define GRAPH_RC1_ALPHA 0
84
#define GRAPH_RC2_ALPHA 1
85
87
#define GRAPH_BLEND_RC2 0
88
#define GRAPH_BLEND_BGCOLOR 1
89
90
#ifdef __cplusplus
91
extern
"C"
{
92
#endif
93
95
extern
int
graph_initialize
(
int
fbp,
int
width,
int
height,
int
psm,
int
x,
int
y);
96
98
extern
int
graph_get_region
(
void
);
99
101
extern
float
graph_aspect_ratio
(
void
);
102
104
extern
void
graph_enable_output
(
void
);
105
107
extern
void
graph_disable_output
(
void
);
108
110
extern
int
graph_set_mode
(
int
interlace,
int
mode,
int
ffmd,
int
flicker_filter);
111
113
extern
int
graph_set_screen
(
int
x,
int
y,
int
width,
int
height);
114
116
extern
void
graph_set_framebuffer_filtered
(
int
fbp,
int
width,
int
psm,
int
x,
int
y);
117
119
extern
void
graph_set_framebuffer
(
int
context,
int
fbp,
int
width,
int
psm,
int
x,
int
y);
120
122
extern
void
graph_set_bgcolor
(
unsigned
char
r,
unsigned
char
g,
unsigned
char
b);
123
125
extern
void
graph_set_output
(
int
rc1,
int
rc2,
int
alpha_select,
int
alpha_output,
int
blend_method,
unsigned
char
alpha);
126
128
extern
int
graph_add_vsync_handler
(
int
(*vsync_callback)(
int
cause));
129
131
extern
void
graph_remove_vsync_handler
(
int
callback_id);
132
134
extern
void
graph_wait_hsync
(
void
);
135
137
extern
void
graph_wait_vsync
(
void
);
138
140
extern
int
graph_check_vsync
(
void
);
141
143
extern
void
graph_start_vsync
(
void
);
144
146
extern
int
graph_shutdown
(
void
);
147
159
160
#ifdef __cplusplus
161
}
162
#endif
163
164
#endif
/* __GRAPH_H__ */
graph_set_screen
int graph_set_screen(int x, int y, int width, int height)
Definition
graph_mode.c:195
graph_set_bgcolor
void graph_set_bgcolor(unsigned char r, unsigned char g, unsigned char b)
Definition
graph_mode.c:306
graph_remove_vsync_handler
void graph_remove_vsync_handler(int callback_id)
Definition
graph.c:46
graph_initialize
int graph_initialize(int fbp, int width, int height, int psm, int x, int y)
Definition
graph.c:6
graph_set_output
void graph_set_output(int rc1, int rc2, int alpha_select, int alpha_output, int blend_method, unsigned char alpha)
Definition
graph_mode.c:313
graph_enable_output
void graph_enable_output(void)
Definition
graph_mode.c:324
graph_wait_vsync
void graph_wait_vsync(void)
Definition
graph.c:99
graph_set_framebuffer_filtered
void graph_set_framebuffer_filtered(int fbp, int width, int psm, int x, int y)
Definition
graph_mode.c:277
graph_get_region
int graph_get_region(void)
Definition
graph_mode.c:123
graph_shutdown
int graph_shutdown(void)
Definition
graph_mode.c:440
graph_add_vsync_handler
int graph_add_vsync_handler(int(*vsync_callback)(int cause))
Definition
graph.c:29
graph_check_vsync
int graph_check_vsync(void)
Definition
graph.c:85
graph_start_vsync
void graph_start_vsync(void)
Definition
graph.c:92
graph_wait_hsync
void graph_wait_hsync(void)
Definition
graph.c:74
graph_disable_output
void graph_disable_output(void)
Definition
graph_mode.c:342
graph_aspect_ratio
float graph_aspect_ratio(void)
Definition
graph_mode.c:411
graph_set_mode
int graph_set_mode(int interlace, int mode, int ffmd, int flicker_filter)
Definition
graph_mode.c:139
graph_set_framebuffer
void graph_set_framebuffer(int context, int fbp, int width, int psm, int x, int y)
Definition
graph_mode.c:287
graph_vram.h
core
graph
include
graph.h
Generated by
1.18.0