Extract standalone Playground SDK source foundation
This commit is contained in:
commit
34ac58b9a2
3567 changed files with 1657902 additions and 0 deletions
19
third_party/SDL3_ttf/cmake/test/main.c
vendored
Normal file
19
third_party/SDL3_ttf/cmake/test/main.c
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue