submodule updates
This commit is contained in:
@@ -3,13 +3,12 @@
|
||||
#include "SDL.h"
|
||||
|
||||
struct WindowData {
|
||||
int width = 1280;
|
||||
int height = 720;
|
||||
const char* title = "Sakura Visual Novel Engine";
|
||||
int width = 1920;
|
||||
int height = 1080;
|
||||
const char *title = "Sakura Visual Novel Engine";
|
||||
};
|
||||
|
||||
class Application
|
||||
{
|
||||
class Application {
|
||||
public:
|
||||
Application();
|
||||
~Application();
|
||||
@@ -18,19 +17,20 @@ public:
|
||||
void Run();
|
||||
void Shutdown();
|
||||
|
||||
static inline WindowData& GetWindowData() { return m_WindowData; }
|
||||
inline SDL_Window* GetSDLWindow() { return m_Window; }
|
||||
inline SDL_Surface* GetSDLWindowSurface() { return m_Surface; }
|
||||
inline void SetSDLWindowSurface(SDL_Surface* newSurface) { m_Surface = newSurface; }
|
||||
static inline WindowData &GetWindowData() { return m_WindowData; }
|
||||
inline SDL_Window *GetSDLWindow() { return m_Window; }
|
||||
inline SDL_Surface *GetSDLWindowSurface() { return m_Surface; }
|
||||
inline void SetSDLWindowSurface(SDL_Surface *newSurface) { m_Surface = newSurface; }
|
||||
|
||||
static bool& GetRunningState() { return m_isRunning; }
|
||||
static bool &GetRunningState() { return m_isRunning; }
|
||||
static void SetRunningState(bool isRunning) { m_isRunning = isRunning; }
|
||||
|
||||
private:
|
||||
SDL_Window* m_Window;
|
||||
SDL_Surface* m_Surface;
|
||||
SDL_Renderer* m_Renderer;
|
||||
SDL_Window *m_Window;
|
||||
SDL_Surface *m_Surface;
|
||||
SDL_Renderer *m_Renderer;
|
||||
|
||||
static WindowData m_WindowData;
|
||||
|
||||
static bool m_isRunning;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user