viz1090/sdl1090/structs.h
Nathan aff3e48bbc trying 90 degree lables
Former-commit-id: 416a4800a52e43f2583252650e6345f88fa7f988
Former-commit-id: 5efa8306924bca3a336db7412480ee40b3876dbc
2017-10-06 11:34:36 -05:00

54 lines
839 B
C

#ifndef STRUCTS
#define STRUCTS
#include "defs.h"
typedef struct Game
{
SDL_Surface *screen;
SDL_Surface *bigScreen;
TTF_Font *font;
TTF_Font *listFont;
TTF_Font *messageFont;
TTF_Font *labelFont;
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 rows, int top);
//draw.c
void draw();
//status.c
void updateStatus();
void drawStatus();
#endif