mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 05:12:40 +02:00
25 lines
331 B
C
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;
|
|
}
|
|
|