viz1090/sdl1090/structs.h
Nathan 96f0457439 status boxes on map layout
Former-commit-id: 2c494dcf47da220f7dd081d4b3fe09a6c67b35f9
Former-commit-id: 587a33ba83cd4c661d7bcc8528c70ad723ca4066
2017-10-05 22:25:30 -05:00

47 lines
669 B
C

#ifndef STRUCTS
#define STRUCTS
#include "defs.h"
typedef struct Game
{
SDL_Surface *screen;
SDL_Surface *bigScreen;
TTF_Font *font;
TTF_Font *listFont;
int fontWidth;
int fontHeight;
} 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();
//status.c
void updateStatus();
void drawStatus();
#endif