|
PS2SDK
PS2 Homebrew Libraries
|
#include <graph_vram.h>
Include dependency graph for graph.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | GRAPH_MODE |
Macros | |
| #define | GRAPH_MODE_AUTO 0 |
| #define | GRAPH_MODE_NTSC 1 |
| #define | GRAPH_MODE_PAL 2 |
| #define | GRAPH_MODE_HDTV_480P 3 |
| #define | GRAPH_MODE_HDTV_576P 4 |
| #define | GRAPH_MODE_HDTV_720P 5 |
| #define | GRAPH_MODE_HDTV_1080I 6 |
| #define | GRAPH_MODE_VGA_640_60 7 |
| #define | GRAPH_MODE_VGA_640_72 8 |
| #define | GRAPH_MODE_VGA_640_75 9 |
| #define | GRAPH_MODE_VGA_640_85 10 |
| #define | GRAPH_MODE_VGA_800_56 11 |
| #define | GRAPH_MODE_VGA_800_60 12 |
| #define | GRAPH_MODE_VGA_800_72 13 |
| #define | GRAPH_MODE_VGA_800_75 14 |
| #define | GRAPH_MODE_VGA_800_85 15 |
| #define | GRAPH_MODE_VGA_1024_60 16 |
| #define | GRAPH_MODE_VGA_1024_70 17 |
| #define | GRAPH_MODE_VGA_1024_75 18 |
| #define | GRAPH_MODE_VGA_1024_85 19 |
| #define | GRAPH_MODE_VGA_1280_60 20 |
| #define | GRAPH_MODE_VGA_1280_75 21 |
| #define | GRAPH_MODE_NONINTERLACED 0 |
| #define | GRAPH_MODE_INTERLACED 1 |
| #define | GRAPH_MODE_FIELD 0 |
| #define | GRAPH_MODE_FRAME 1 |
| #define | GRAPH_FIELD_EVEN 0 |
| #define | GRAPH_FIELD_ODD 1 |
| #define | GRAPH_DISABLE 0 |
| #define | GRAPH_ENABLE 1 |
| #define | GRAPH_GCONT_RGB 0 |
| #define | GRAPH_GCONT_YCRCB 1 |
| #define | GRAPH_CMOD_NTSC 2 |
| #define | GRAPH_CMOD_PAL 3 |
| #define | GRAPH_VALUE_RC1 0 |
| #define | GRAPH_VALUE_ALPHA 1 |
| #define | GRAPH_RC1_ALPHA 0 |
| #define | GRAPH_RC2_ALPHA 1 |
| #define | GRAPH_BLEND_RC2 0 |
| #define | GRAPH_BLEND_BGCOLOR 1 |
Functions | |
| int | graph_initialize (int fbp, int width, int height, int psm, int x, int y) |
| int | graph_get_region (void) |
| float | graph_aspect_ratio (void) |
| void | graph_enable_output (void) |
| void | graph_disable_output (void) |
| int | graph_set_mode (int interlace, int mode, int ffmd, int flicker_filter) |
| int | graph_set_screen (int x, int y, int width, int height) |
| void | graph_set_framebuffer_filtered (int fbp, int width, int psm, int x, int y) |
| void | graph_set_framebuffer (int context, int fbp, int width, int psm, int x, int y) |
| void | graph_set_bgcolor (unsigned char r, unsigned char g, unsigned char b) |
| void | graph_set_output (int rc1, int rc2, int alpha_select, int alpha_output, int blend_method, unsigned char alpha) |
| int | graph_add_vsync_handler (int(*vsync_callback)(int cause)) |
| void | graph_remove_vsync_handler (int callback_id) |
| void | graph_wait_hsync (void) |
| void | graph_wait_vsync (void) |
| int | graph_check_vsync (void) |
| void | graph_start_vsync (void) |
| int | graph_shutdown (void) |
Variables | |
| GRAPH_MODE | graph_mode [] |
Graph library
Definition in file graph.h.
| struct GRAPH_MODE |
| #define GRAPH_MODE_AUTO 0 |
| int graph_initialize | ( | int | fbp, |
| int | width, | ||
| int | height, | ||
| int | psm, | ||
| int | x, | ||
| int | y | ||
| ) |
| int graph_get_region | ( | void | ) |
Retrieves the PS2's region for automatic mode selection.
Definition at line 114 of file graph_mode.c.
References GetRomName(), GRAPH_MODE_NTSC, and GRAPH_MODE_PAL.
| float graph_aspect_ratio | ( | void | ) |
Returns an aspect ratio calculated from system setting, width, and height
Definition at line 402 of file graph_mode.c.
References configGetTvScreenType().
| void graph_enable_output | ( | void | ) |
Sets a default output method.
Definition at line 315 of file graph_mode.c.
References graph_set_output().
| void graph_disable_output | ( | void | ) |
Turns off the read circuits.
Definition at line 333 of file graph_mode.c.
References graph_set_output().
Referenced by graph_shutdown().
| int graph_set_mode | ( | int | interlace, |
| int | mode, | ||
| int | ffmd, | ||
| int | flicker_filter | ||
| ) |
Sets the graphics mode.
Definition at line 130 of file graph_mode.c.
| int graph_set_screen | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Sets the screen dimensions for the read circuits.
Definition at line 186 of file graph_mode.c.
References GRAPH_MODE_AUTO.
| void graph_set_framebuffer_filtered | ( | int | fbp, |
| int | width, | ||
| int | psm, | ||
| int | x, | ||
| int | y | ||
| ) |
Sets the framebuffer attributes for the read circuits with filter.
Definition at line 268 of file graph_mode.c.
References GS_REG_DISPFB1.
| void graph_set_framebuffer | ( | int | context, |
| int | fbp, | ||
| int | width, | ||
| int | psm, | ||
| int | x, | ||
| int | y | ||
| ) |
Sets the framebuffer attributes for the read circuits.
Definition at line 278 of file graph_mode.c.
References GS_REG_DISPFB1.
| void graph_set_bgcolor | ( | unsigned char | r, |
| unsigned char | g, | ||
| unsigned char | b | ||
| ) |
Sets the background color for merge circuit.
Definition at line 297 of file graph_mode.c.
References GS_REG_BGCOLOR.
| void graph_set_output | ( | int | rc1, |
| int | rc2, | ||
| int | alpha_select, | ||
| int | alpha_output, | ||
| int | blend_method, | ||
| unsigned char | alpha | ||
| ) |
Sets the read circuits and merge cicuit.
Definition at line 304 of file graph_mode.c.
Referenced by graph_disable_output(), and graph_enable_output().
| int graph_add_vsync_handler | ( | int(*)(int cause) | vsync_callback | ) |
| void graph_remove_vsync_handler | ( | int | callback_id | ) |
| void graph_wait_hsync | ( | void | ) |
Starts a horizontal sync event and waits
Definition at line 74 of file graph.c.
References GS_REG_CSR.
| void graph_wait_vsync | ( | void | ) |
Starts a vertical sync event and waits.
Definition at line 99 of file graph.c.
References GS_REG_CSR.
| int graph_check_vsync | ( | void | ) |
Checks if a vertical sync event is currently generated.
Definition at line 85 of file graph.c.
References GS_REG_CSR.
| void graph_start_vsync | ( | void | ) |
Starts a vertical sync event and returns immediately.
Definition at line 92 of file graph.c.
References GS_REG_CSR.
| int graph_shutdown | ( | void | ) |
Shut down the graphics library and hardware.
Definition at line 433 of file graph_mode.c.
References graph_disable_output(), and GS_REG_CSR.