viz1090/sdl1090/structs.h
Nathan 28cc65fc6a initial sdl list mode
Former-commit-id: 00846e544ad84ed8c7d0d7fe9a62bebe9999cf2d
Former-commit-id: 4688e987806e16e57798803f632e14d4e0f71b77
2017-09-17 10:38:22 -05:00

39 lines
674 B
C

#include "defs.h"
typedef struct Game
{
SDL_Surface *screen;
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);
//draw.c
void drawGeography();
void drawPlaneHeading(double , double , double, int, char *);
void drawPlane(double , double, int);
void drawTrail(double *, double *, time_t *, int);
void drawGrid();
//mapdata.c
void initMaps();
//list.c
void drawList();