Renderer/main.cpp
2026-02-07 17:23:14 +11:00

33 lines
401 B
C++

#include <cstdio>
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
bool
Init()
{
const char* error = NULL;
SDL_SetAppMetadata("Renderer", "0.0", "com.sleepyday.renderer");
if(!SDL_Init(SDL_INIT_VIDEO))
{
error = SDL_GetError();
goto InitFailure;
}
return true;
InitFailure:
printf("Failed to initialize: [%s]", error);
return false;
}
int
main(int argc, char** argv)
{
Init();
}