Initial setup.
Correctly linking glfw and spdlog... Linking could be improved by not needing the sandbox application to also be linked with glfw
This commit is contained in:
9
MyGraphicsEngine/include/MyGraphicsEngine/Graphics.h
Normal file
9
MyGraphicsEngine/include/MyGraphicsEngine/Graphics.h
Normal file
@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include <spdlog/spdlog.h>
|
||||
#include "MyGraphicsEngine/window.h"
|
||||
|
||||
|
||||
inline void test (){
|
||||
spdlog::info("Linked correctly!");
|
||||
|
||||
}
|
22
MyGraphicsEngine/include/MyGraphicsEngine/window.h
Normal file
22
MyGraphicsEngine/include/MyGraphicsEngine/window.h
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
|
||||
class BarinkWindow{
|
||||
private:
|
||||
GLFWwindow* window;
|
||||
bool FullScreen;
|
||||
bool VulkanSupported;
|
||||
int Width, Height;
|
||||
|
||||
bool InitGLFW();
|
||||
|
||||
|
||||
public:
|
||||
BarinkWindow(const int width, const int height);
|
||||
~BarinkWindow();
|
||||
|
||||
void EnterLoop();
|
||||
|
||||
|
||||
};
|
Reference in New Issue
Block a user