
Former-commit-id: 6ea8b3be1ff479c52f11d7547e5d026578416ae7 Former-commit-id: 3e1c0fae85d5670b55bc0fad147095dd3fc90d98
31 lines
542 B
C
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(); |