2022-04-22 20:37:38 +00:00
|
|
|
#include <glad/glad.h>
|
|
|
|
#include <MyGraphicsEngine/Shader.h>
|
|
|
|
#include <MyGraphicsEngine/Window.h>
|
|
|
|
#include <string>
|
2022-04-20 19:40:35 +00:00
|
|
|
|
|
|
|
int main (int argc, char *argv[] ){
|
|
|
|
|
|
|
|
|
|
|
|
BarinkWindow GameWindow(800, 600);
|
|
|
|
|
2022-04-22 20:37:38 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
2022-04-20 19:40:35 +00:00
|
|
|
GameWindow.EnterLoop();
|
|
|
|
}
|
|
|
|
|