Replace Game::initialize() with factory method
This commit is contained in:
parent
d180b8a5b4
commit
e37eb0b03f
6 changed files with 43 additions and 37 deletions
|
|
@ -18,10 +18,10 @@ export namespace sdl
|
|||
std::unique_ptr<
|
||||
SDL_Window,
|
||||
utils::FuncDeleter<SDL_DestroyWindow>
|
||||
> raw_window_ = nullptr;
|
||||
> raw_window_;
|
||||
|
||||
public:
|
||||
Window() = default;
|
||||
Window() = delete;
|
||||
|
||||
explicit Window(SDL_Window* raw_window)
|
||||
: raw_window_{raw_window}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue