viz1090/sdl1090/structs.h
Nathan a9a6bc9584 draw.c refactor. draw.c now handles outer draw routine, previous contents moved to maps.c
Former-commit-id: c1374d41abd475f83a32fa9ec639d0feef018a20
Former-commit-id: 39838a5e1d346c49df1a8f65c910db943a228c61
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();