Initial commit. Added base of framework

This commit is contained in:
2025-12-04 13:05:12 +02:00
commit 34ce515521
8 changed files with 250 additions and 0 deletions

18
sdl_helpers.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef SDL_HELPERS_H_
#define SDL_HELPERS_H_
#include <string>
#include <SDL2/SDL_ttf.h>
// Call this before everything
// Prints its messages
bool init_sdl();
// Call this at the end only if init has passed
void clean_sdl();
// A simple way to get a font pointer to use
// Can return NULL
TTF_Font* get_font(const std::string& filename, int size);
#endif // SDL_HELPERS_H_