19 lines
380 B
C++
19 lines
380 B
C++
#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_
|