singe/thirdparty/SDL3_ttf/cmake/test/main.c
2026-09-03 22:01:35 -05:00

19 lines
396 B
C

#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3_ttf/SDL_ttf.h>
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
if (!SDL_Init(0)) {
SDL_Log("SDL_Init: could not initialize SDL: %s", SDL_GetError());
return 1;
}
if (!TTF_Init()) {
SDL_Log("TTF_Init: %s", SDL_GetError());
}
TTF_Quit();
SDL_Quit();
return 0;
}