viz1090/sdl1090/structs.h
Nathan 6942be7894 map draw
Former-commit-id: bfcd4edfb6cd845e0e3a5b7a2ddd1f7c3dbcac7f
Former-commit-id: 727e5a945c40de8b5c62cbccb3762083bca83c3e
2017-09-17 09:46:48 -05:00

31 lines
542 B
C

#include "defs.h"
typedef struct Game
{
SDL_Surface *screen;
TTF_Font *font;
} Game;
// functions
//font.c
TTF_Font *loadFont(char *, int);
void closeFont(TTF_Font *);
void drawString(char *, int, int, TTF_Font *, 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();