blob: 03e65795728024982c982dc57b59e709a876ab7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __ASURA_WINDOW_SDL_H_
#define __ASURA_WINDOW_SDL_H_
#include <SDL2/SDL.h>
#include "window.h"
namespace AsuraEngine
{
namespace Wnd
{
class WindowImplSDL ASURA_FINAL : public WindowImpl
{
public:
WindowImplSDL(const WindowConfig& config);
~WindowImplSDL();
void SetSize(uint width, uint height);
void SetPosition(int x, int y);
void SetTitils(const std::string& title);
void Show();
void Hide();
void SwapRenderBuffer();
private:
SDL_Window* mWnd;
SDL_GLContext mGLContext;
};
}
}
#endif
|