42 lines
586 B
C++
42 lines
586 B
C++
#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;
|
|
}; |