YoggieEngine/BarinkEngine/Include/Graphics/Window.h

37 lines
706 B
C
Raw Normal View History

#pragma once
2022-04-30 20:51:50 +00:00
#define GLFW_STATIC
#include <glad/glad.h>
2022-08-15 19:15:12 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
2022-08-15 19:15:12 +00:00
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
2022-08-15 19:15:12 +00:00
#include "EventSystem/Event.h"
#include "EventSystem/EventListener.h"
class BarinkWindow : EventListener {
private:
GLFWwindow* window;
bool FullScreen;
bool VulkanSupported;
int Width, Height;
2022-04-30 18:20:07 +00:00
static bool InitGLFW();
public:
BarinkWindow(const int width, const int height);
~BarinkWindow();
2022-05-04 12:39:27 +00:00
GLFWwindow* windowptr();
2022-08-15 19:15:12 +00:00
void ReceiveEvent(Event& incident) override ;
bool WindowShouldClose();
void Poll();
2022-05-04 12:39:27 +00:00
void SwapBuffers();
};