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.
Data Structures | |
struct | MAVING_SPRITE |
Macros | |
#define | MAX_SPRITES 1000 |
#define | SCREEN_WIDTH 640 |
#define | SCREEN_HEIGHT 448 |
#define | GIF_PACKET_MAX 10 |
Functions | |
static int | InitGraphics (void) |
static int | InitSprites (void) |
static int | MoveSprites (void) |
static int | DrawSprites (GS_PACKET_TABLE *table) |
int | main (int argc, char *argv[]) |
Variables | |
static const char | x_randspeeds [10] = {1,4,6,5,2,3,8,6,6,7} |
static const GS_RGBAQ | randcolor [10] |
static short int | ScreenOffsetX |
static short int | ScreenOffsetY |
static GS_DRAWENV | draw_env |
static GS_DISPENV | disp_env |
static GS_GIF_PACKET | packets [GIF_PACKET_MAX] |
static GS_PACKET_TABLE | giftable |
static MAVING_SPRITE | sprites [MAX_SPRITES] |
|
static |
Definition at line 213 of file main.c.
References GS_RGBAQ::a, GS_RGBAQ::b, MAVING_SPRITE::color, GS_RGBAQ::g, gif_rd_ad, GS_GIF_PACKED, GS_PRIM_SPRITE, gs_setGIF_TAG, gs_setR_PRIM, gs_setR_RGBAQ, gs_setR_XYZ2, GsGifPacketsAlloc(), MAX_SPRITES, GS_RGBAQ::q, ScreenOffsetX, ScreenOffsetY, sprites, and UNCACHED_SEG.
Referenced by main().
|
static |
Definition at line 88 of file main.c.
References disp_env, draw_env, GS_ALPHA_GEQUAL, GS_ALPHA_NO_UPDATE, GS_DISABLE, GS_ENABLE, GS_FFMD_FIELD, GS_INIT_RESET, GS_INTERLACED, GS_MODE_NTSC, GS_PIXMODE_32, GsEnableAlphaBlending1(), GsEnableAlphaBlending2(), GsEnableAlphaTransparency1(), GsEnableAlphaTransparency2(), GsOverridePrimAttributes(), GsPutDisplayEnv1(), GsPutDrawEnv1(), GsResetGraph(), GsSetDefaultDisplayEnv(), GsSetDefaultDisplayEnvAddress(), GsSetDefaultDrawEnv(), GsSetDefaultDrawEnvAddress(), GsVramAllocFrameBuffer(), GS_DRAWENV::offset_x, GS_DRAWENV::offset_y, SCREEN_HEIGHT, SCREEN_WIDTH, ScreenOffsetX, and ScreenOffsetY.
Referenced by main().
|
static |
Definition at line 128 of file main.c.
References MAVING_SPRITE::color, MAX_SPRITES, randcolor, sprites, MAVING_SPRITE::x_dir, MAVING_SPRITE::x_pos, x_randspeeds, MAVING_SPRITE::x_speed, MAVING_SPRITE::y_dir, MAVING_SPRITE::y_pos, and MAVING_SPRITE::y_speed.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 63 of file main.c.
References draw_env, DrawSprites(), GIF_PACKET_MAX, giftable, GsClearDrawEnv1(), GsDrawSync(), GsGifPacketsClear(), GsGifPacketsExecute(), GsVSync(), InitGraphics(), InitSprites(), MoveSprites(), GS_PACKET_TABLE::packet_count, GS_PACKET_TABLE::packets, and packets.
|
static |
Definition at line 156 of file main.c.
References MAX_SPRITES, SCREEN_HEIGHT, SCREEN_WIDTH, sprites, MAVING_SPRITE::x_dir, MAVING_SPRITE::x_pos, MAVING_SPRITE::x_speed, MAVING_SPRITE::y_dir, MAVING_SPRITE::y_pos, and MAVING_SPRITE::y_speed.
Referenced by main().
|
static |
Definition at line 53 of file main.c.
Referenced by InitGraphics().
|
static |
Definition at line 52 of file main.c.
Referenced by InitGraphics(), and main().
|
static |
|
static |
|
static |
Definition at line 30 of file main.c.
Referenced by InitSprites().
|
static |
Definition at line 48 of file main.c.
Referenced by DrawSprites(), and InitGraphics().
|
static |
Definition at line 48 of file main.c.
Referenced by DrawSprites(), and InitGraphics().
|
static |
Definition at line 126 of file main.c.
Referenced by DrawSprites(), InitSprites(), and MoveSprites().
|
static |
Definition at line 28 of file main.c.
Referenced by InitSprites().