Initial commit. Added base of framework
This commit is contained in:
18
sdl_helpers.h
Normal file
18
sdl_helpers.h
Normal 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_
|
||||
Reference in New Issue
Block a user