2012-12-31 22:58:44 +00:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
|
|
// SDL dependencies
|
|
|
|
#include "SDL/SDL.h" // SDL 1.2.15 (32 bit)
|
|
|
|
#include "SDL/SDL_image.h" // SDL_image (1.2.12)
|
|
|
|
#include "SDL/SDL_ttf.h" // SDL_tff (2.0.11)
|
|
|
|
|
|
|
|
// Standard dependencies
|
2013-01-09 05:36:22 +00:00
|
|
|
#include <iostream>
|
2012-12-31 22:58:44 +00:00
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
namespace scrns
|
|
|
|
{
|
2013-01-14 02:21:15 +00:00
|
|
|
SDL_Surface * initiateSDL(int x, int y);
|
2012-12-31 22:58:44 +00:00
|
|
|
SDL_Surface * MainMenu();
|
2013-01-14 02:21:15 +00:00
|
|
|
SDL_Surface * MainMenu_survey(SDL_Surface *screen);
|
2012-12-31 22:58:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace scrnfunk
|
|
|
|
{
|
|
|
|
SDL_Surface *load_image(const char *file);
|
|
|
|
void apply_image(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip = 0);
|
|
|
|
bool RemoveColor(SDL_Surface* image, Uint8 R, Uint8 G, Uint8);
|
|
|
|
}
|
|
|
|
|
2013-01-02 04:32:56 +00:00
|
|
|
#define VERSION "0.1-alpha"
|
2012-12-31 22:58:44 +00:00
|
|
|
#define WINDOW_TITLE "Trololo"
|
|
|
|
|
|
|
|
#endif
|