pinboid/src/gfx/src/init.c

13 lines
254 B
C

#include <gfx.h>
#include <psxgpu.h>
int gfx_init(void)
{
GsInit();
GsClearMem();
GsSetVideoMode(SCREEN_X, SCREEN_Y, VMODE_PAL);
GsSetDrawEnv(&(GsDrawEnv){.w = SCREEN_X, .h = SCREEN_Y});
GsSetDispEnv(&(GsDispEnv){});
return 0;
}