viz1090/sdl1090/structs.h
Nathan aa8e3dca4b status boxes on map layout
Former-commit-id: 0ef788b2ddd092a1d30bdcc6d83bc0e972d5e229
Former-commit-id: 733d714f10f3ea03cf011aa4226c62a7784b2a36
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