switch-examples/graphics/simplegfx/source/main.c
2017-11-07 14:01:06 -05:00

25 lines
331 B
C

#include <string.h>
#include <stdio.h>
#include <switch.h>
int main(int argc, char **argv)
{
u32 cnt=60*5;
gfxInitDefault();
while(cnt)//Unknown how to properly handle exiting this loop.
{
//Currently unknown how to write to {framebuffer}.
gfxSwapBuffers();
gfxWaitForVsync();
cnt--;
}
gfxExit();
return 0;
}