mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 18:25:30 +02:00
Setting code formatting standard to allman.
This commit is contained in:
45
Source/SDL.h
45
Source/SDL.h
@@ -1,6 +1,6 @@
|
||||
/* 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>
|
||||
|
||||
@@ -10,23 +10,32 @@ 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; }
|
||||
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;
|
||||
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