ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Macros | |
#define | SCREEN_WIDTH 640 |
#define | SCREEN_HEIGHT 224 |
#define | GIF_PACKET_MAX 4 |
Functions | |
static int | InitGraphics (void) |
static void | SelectDisplayContext (int context_id) |
static void | ClearDrawingContext (int context_id) |
static int | DrawTriangles (GS_PACKET_TABLE *table, int context_index) |
static void | MovePoint (void) |
int | main (int argc, char *argv[]) |
Variables | |
static int | ScreenOffsetX |
static int | ScreenOffsetY |
static GS_DRAWENV | draw_env [2] |
static GS_DISPENV | disp_env [2] |
static GS_GIF_PACKET | packets [2][GIF_PACKET_MAX] |
static GS_PACKET_TABLE | packet_table [2] |
static int | active_buffer =0 |
static int | point_x =100 |
static int | point_y =100 |
static int | dir_x =0 |
static int | dir_y =0 |
|
static |
Definition at line 147 of file main.c.
References draw_env, GsClearDrawEnv1(), and GsClearDrawEnv2().
Referenced by main().
|
static |
Definition at line 158 of file main.c.
References gif_rd_ad, GS_GIF_PACKED, GS_PRIM_TRI, gs_setGIF_TAG, gs_setR_PRIM, gs_setR_RGBAQ, gs_setR_XYZ2, GsGifPacketsAlloc(), point_x, point_y, SCREEN_HEIGHT, SCREEN_WIDTH, ScreenOffsetX, ScreenOffsetY, and UNCACHED_SEG.
Referenced by main().
|
static |
Definition at line 87 of file main.c.
References disp_env, draw_env, GS_ALPHA_GEQUAL, GS_DISABLE, GS_ENABLE, GS_FFMD_FRAME, GS_INIT_RESET, GS_INTERLACED, GS_MODE_NTSC, GS_PIXMODE_32, GsEnableAlphaBlending1(), GsEnableAlphaBlending2(), GsEnableAlphaTransparency1(), GsEnableAlphaTransparency2(), GsOverridePrimAttributes(), GsPutDisplayEnv1(), GsPutDisplayEnv2(), GsPutDrawEnv1(), GsPutDrawEnv2(), GsResetGraph(), GsSetDefaultDisplayEnv(), GsSetDefaultDisplayEnvAddress(), GsSetDefaultDrawEnv(), GsSetDefaultDrawEnvAddress(), GsVramAllocFrameBuffer(), GS_DRAWENV::offset_x, GS_DRAWENV::offset_y, SCREEN_HEIGHT, SCREEN_WIDTH, ScreenOffsetX, and ScreenOffsetY.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 40 of file main.c.
References active_buffer, ClearDrawingContext(), DrawTriangles(), GIF_PACKET_MAX, GsDbGetDisplayBuffer(), GsDbGetDrawBuffer(), GsDbSwapBuffer(), GsDrawSync(), GsGifPacketsClear(), GsGifPacketsExecute(), GsVSync(), InitGraphics(), MovePoint(), GS_PACKET_TABLE::packet_count, packet_table, GS_PACKET_TABLE::packets, packets, and SelectDisplayContext().
|
static |
Definition at line 215 of file main.c.
References dir_x, dir_y, point_x, point_y, SCREEN_HEIGHT, and SCREEN_WIDTH.
Referenced by main().
|
static |
Definition at line 136 of file main.c.
References CRTC_SETTINGS_DEFAULT1, CRTC_SETTINGS_DEFAULT2, and GsSetCRTCSettings().
Referenced by main().
|
static |
Definition at line 156 of file main.c.
Referenced by MovePoint().
|
static |
Definition at line 156 of file main.c.
Referenced by MovePoint().
|
static |
Definition at line 27 of file main.c.
Referenced by InitGraphics().
|
static |
Definition at line 26 of file main.c.
Referenced by ClearDrawingContext(), and InitGraphics().
|
static |
|
static |
Definition at line 29 of file main.c.
Referenced by main(), render(), and run_demo().
|
static |
Definition at line 155 of file main.c.
Referenced by DrawTriangles(), and MovePoint().
|
static |
Definition at line 155 of file main.c.
Referenced by DrawTriangles(), and MovePoint().
|
static |
Definition at line 22 of file main.c.
Referenced by DrawTriangles(), and InitGraphics().
|
static |
Definition at line 22 of file main.c.
Referenced by DrawTriangles(), and InitGraphics().