Created a basic shader object and window object

Using GLAD to load OpenGL/Vulkan extensions
This commit is contained in:
2022-04-22 22:37:38 +02:00
parent dab01f1541
commit 168b936945
10 changed files with 171 additions and 23 deletions

View File

@ -1,11 +1,23 @@
#include <MyGraphicsEngine/Graphics.h>
#include <glad/glad.h>
#include <MyGraphicsEngine/Shader.h>
#include <MyGraphicsEngine/Window.h>
#include <string>
int main (int argc, char *argv[] ){
test();
BarinkWindow GameWindow(800, 600);
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)){
printf("Failed to initialize GLAD!\n");
return -1;
}
std::string vertexShaderSource = "build/SandboxApplication/Debug/test.vs";
std::string fragmentShaderSource = "build/SandboxApplication/Debug/test.fs";
Shader(vertexShaderSource, fragmentShaderSource);
GameWindow.EnterLoop();
}