mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Port from git
This commit is contained in:
32
Source/SDL.h
Normal file
32
Source/SDL.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user