
Former-commit-id: a6963070be35b80f14d68ce0f352887a8cfc9ff8 Former-commit-id: 0e085c6bee6ebbbc9ed8064b469f9066c9e7b2aa
39 lines
674 B
C
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();
|