viz1090/sdl1090/structs.h
Nathan 44c69fd47d draw.c refactor. draw.c now handles outer draw routine, previous contents moved to maps.c
Former-commit-id: ff10c96cd8ee950e56b9bba51bf54451d7cab293
Former-commit-id: 04d08428688a3567ec572e34b87a96901c4ca31e
2017-10-05 09:58:23 -05:00

35 lines
540 B
C

#include "defs.h"
typedef struct Game
{
SDL_Surface *screen;
SDL_Surface *bigScreen;
TTF_Font *font;
TTF_Font *listFont;
} Game;
Game game;
// functions
//font.c
TTF_Font *loadFont(char *, int);
void closeFont(TTF_Font *);
void drawString(char *, int, int, TTF_Font *, SDL_Color);
void drawStringBG(char *, int, int, TTF_Font *, SDL_Color, SDL_Color);
//init.c
void init(char *);
void cleanup(void);
//input.c
void getInput(void);
//mapdata.c
void initMaps();
//list.c
void drawList(int rows, int top);
//draw.c
void draw();