mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
24 lines
409 B
C
24 lines
409 B
C
|
#pragma once
|
||
|
#include "config.h"
|
||
|
|
||
|
class WindowManager
|
||
|
{
|
||
|
public:
|
||
|
WindowManager();
|
||
|
~WindowManager();
|
||
|
int getwinw();
|
||
|
int getwinh();
|
||
|
SDL_Renderer* getRender();
|
||
|
SDL_Window* getWindow();
|
||
|
void updateSize();
|
||
|
|
||
|
static WindowManager* getDefaultInstance();
|
||
|
static int releaseDefaultInstance();
|
||
|
protected:
|
||
|
void Init();
|
||
|
void Quit();
|
||
|
private:
|
||
|
struct impl;
|
||
|
impl* pimpl;
|
||
|
};
|