Created a basic shader object and window object
Using GLAD to load OpenGL/Vulkan extensions
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user