Files
Archimedes/window/window.h
2024-08-10 21:20:28 -05:00

42 lines
574 B
C++

#pragma once
#include "terminal.h"
#include "event.h"
#include "mouseEvent.h"
#include "keyEvent.h"
#include "windowEvent.h"
class Window {
public:
Window();
~Window();
void init( std::string, int, int);
void shutdown();
void getSize();
const Event* pollEvents();
operator SDL_Window*() { return window; }
//private:
const Event* createEvent();
int x, y;
std::string title;
SDL_Window* window = nullptr;
SDL_Event event;
bool error = false;
};