timesynk/interface/sdl.h

28 lines
830 B
C

#ifndef SDL_H
#define SDL_H
#include "../player.h" // for races/class totals
SDL_Surface* screen;
SDL_Surface* font_spritesheet;
SDL_Surface* player_spritesheet;
SDL_Surface* npc_spritesheet;
SDL_Surface* shadow_spritesheet;
SDL_Surface* wall_spritesheet;
SDL_Surface* floor_spritesheet;
SDL_Surface* door_spritesheet;
SDL_Surface* player_sprites[TOTAL_RACES][TOTAL_CLASSES];
SDL_Surface* camera_surface;
SDL_Event event;
int video_width;
int video_height;
int video_mode;
int video_fullscreen; // 0=windowed, 1=fullscreen
void interfaceDrawString(const char *string, int start_x, int start_y);
void interfaceDrawChar(char ch, int start_x, int start_y);
void interfaceVideoSetSize(const char *input_string);
SDL_Surface *interfaceScaleSurface(SDL_Surface *Surface, Uint16 Width, Uint16 Height);
#endif