MiniEngine/WindowManager.h

24 lines
409 B
C
Raw Normal View History

2017-01-03 23:32:35 +08:00
#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;
};