viz1090/structs.h
nathan 8cd0fa2a9d directory cleanup of old hw stuff (retained in subdir
Former-commit-id: 03042b53b1c453e267695262a6b801ee9569ada5
Former-commit-id: 96eb24339b9ec6e7b8740a562c5869fe3b0b7de7
2019-09-08 15:06:42 -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