28 lines
603 B
C++
28 lines
603 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <SDL3/SDL.h>
|
|
#include <iostream>
|
|
|
|
#include <utils.hpp>
|
|
#include <renderer/renderer.hpp>
|
|
#include <state/gamestate.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();
|
|
|
|
Renderer::Renderer* getRenderer() { return &mRenderer; }
|
|
|
|
private:
|
|
SDL_Window* mWindow;
|
|
Renderer::Renderer mRenderer;
|
|
bool mRunning;
|
|
};
|
|
} |