viz1090/sdl1090/structs.h
nathan 0507fc179b fixed heading, added heading history, switched list mode to overlay (in progress)
Former-commit-id: 0f107d8c372c5a2540f04b315ec9f947ff496fd1
Former-commit-id: 68382a78fc5e92438b70877a3f4497b3404498e9
2019-09-08 14:29:21 -05:00

58 lines
922 B
C

#ifndef STRUCTS
#define STRUCTS
#include "defs.h"
typedef struct Game
{
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Texture *texture;
TTF_Font *mapFont;
TTF_Font *mapBoldFont;
TTF_Font *listFont;
TTF_Font *messageFont;
TTF_Font *labelFont;
int mapFontWidth;
int mapFontHeight;
int labelFontWidth;
int labelFontHeight;
int messageFontWidth;
int messageFontHeight;
} 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 drawString90(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 top);
//draw.c
void draw();
//status.c
void updateStatus();
void drawStatus();
#endif