restructure project for dynamic linking

This commit is contained in:
2025-02-26 12:12:31 -06:00
parent ca683b50e7
commit 1922896a1a
40 changed files with 11 additions and 0 deletions

42
modules/gui/window/sdl2Window.h Executable file
View File

@@ -0,0 +1,42 @@
#pragma once
#include "terminal.h"
#include "event.h"
#include "mouseEvent.h"
#include "keyEvent.h"
#include "windowEvent.h"
class WindowSDL2 {
public:
WindowSDL2();
~WindowSDL2();
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;
};