restructure project for dynamic linking
This commit is contained in:
42
modules/gui/window/glfwWindow.h
Executable file
42
modules/gui/window/glfwWindow.h
Executable file
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "terminal.h"
|
||||
|
||||
#include "event.h"
|
||||
#include "mouseEvent.h"
|
||||
#include "keyEvent.h"
|
||||
#include "windowEvent.h"
|
||||
|
||||
|
||||
class WindowGLFW {
|
||||
|
||||
public:
|
||||
|
||||
WindowGLFW();
|
||||
|
||||
~WindowGLFW();
|
||||
|
||||
void init( std::string, int, int);
|
||||
|
||||
void shutdown();
|
||||
|
||||
void getSize();
|
||||
|
||||
const Event* pollEvents();
|
||||
|
||||
operator GLFWwindow*() { return window; }
|
||||
|
||||
//private:
|
||||
|
||||
const Event* createEvent();
|
||||
|
||||
int x, y;
|
||||
|
||||
std::string title;
|
||||
|
||||
GLFWwindow* window = nullptr;
|
||||
|
||||
SDL_Event event;
|
||||
|
||||
bool error = false;
|
||||
};
|
||||
Reference in New Issue
Block a user