Port from git

This commit is contained in:
emb
2015-01-01 10:14:26 -06:00
commit 93094bcbed
772 changed files with 621608 additions and 0 deletions

32
Source/SDL.h Normal file
View File

@@ -0,0 +1,32 @@
/* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
#pragma once
#include <SDL2/SDL.h>
// todo: this wrapper could be cleaned up
class Configuration;
class SDL
{
public:
static bool Initialize(Configuration *config);
static bool DeInitialize();
static SDL_Renderer *GetRenderer();
static SDL_mutex *GetMutex();
static SDL_Window *GetWindow();
static bool RenderCopy(SDL_Texture *texture, unsigned char transparency, SDL_Rect *src, SDL_Rect *dest, double angle);
static int GetWindowWidth() { return WindowWidth; }
static int GetWindowHeight() { return WindowHeight; }
static bool IsFullscreen() { return Fullscreen; }
private:
static SDL_Window *Window;
static SDL_Renderer *Renderer;
static SDL_mutex *Mutex;
static int DisplayWidth;
static int DisplayHeight;
static int WindowWidth;
static int WindowHeight;
static bool Fullscreen;
};