Initial
This commit is contained in:
23
include/window/window.hpp
Normal file
23
include/window/window.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <utils.hpp>
|
||||
|
||||
namespace Game::Window {
|
||||
class Window {
|
||||
public:
|
||||
Window();
|
||||
DISABLE_COPY_AND_MOVE(Window)
|
||||
~Window();
|
||||
|
||||
bool init(int width, int height, const std::string& title);
|
||||
void run();
|
||||
|
||||
private:
|
||||
SDL_Window *mWindow;
|
||||
bool mRunning;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user