YoggieEngine/SandboxApplication/Sandbox.cpp
Nigel 168b936945 Created a basic shader object and window object
Using GLAD to load OpenGL/Vulkan extensions
2022-04-22 22:37:38 +02:00

24 lines
581 B
C++

#include <glad/glad.h>
#include <MyGraphicsEngine/Shader.h>
#include <MyGraphicsEngine/Window.h>
#include <string>
int main (int argc, char *argv[] ){
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();
}