Created a basic shader object and window object
Using GLAD to load OpenGL/Vulkan extensions
This commit is contained in:
17
premake5.lua
17
premake5.lua
@ -12,6 +12,7 @@ workspace "BarinkEngine"
|
||||
buildmessage "Building BarinkEngineSandbox ..."
|
||||
|
||||
includedirs {
|
||||
"./libs/glad/include",
|
||||
"./MyGraphicsEngine/include"
|
||||
}
|
||||
|
||||
@ -19,6 +20,7 @@ workspace "BarinkEngine"
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog-1.9.1/build"
|
||||
|
||||
}
|
||||
|
||||
links{
|
||||
@ -37,8 +39,12 @@ workspace "BarinkEngine"
|
||||
"SandboxApplication/*.cpp"
|
||||
}
|
||||
|
||||
|
||||
-- NOTE: make these copy instructions more flexible
|
||||
ok, err = os.copyfile("MyGraphicsEngine/shaders/fragment.shader", "build/SandboxApplication/Debug/test.fs")
|
||||
if err then error("Copy fragment shader source failed!") end
|
||||
|
||||
ok, err = os.copyfile("MyGraphicsEngine/shaders/vertex.shader", "build/SandboxApplication/Debug/test.vs")
|
||||
if err then error("Copy vertex shader source failed!") end
|
||||
|
||||
project "MyGraphicsEngine"
|
||||
kind "StaticLib"
|
||||
@ -46,8 +52,11 @@ workspace "BarinkEngine"
|
||||
buildmessage "Building MyGraphicsEngine ..."
|
||||
|
||||
includedirs {
|
||||
"./libs/glad/include",
|
||||
"./libs/glfw-3.3.4/include",
|
||||
"./libs/glew-2.2.0/include",
|
||||
"./libs/spdlog-1.9.1/include",
|
||||
"./libs/glm/glm",
|
||||
"./MyGraphicsEngine/include"
|
||||
}
|
||||
|
||||
@ -67,7 +76,11 @@ workspace "BarinkEngine"
|
||||
"m"
|
||||
}
|
||||
|
||||
files {"MyGraphicsEngine/*.cpp"}
|
||||
files {
|
||||
"./libs/glad/src/glad.c",
|
||||
"MyGraphicsEngine/*.cpp"
|
||||
|
||||
}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines {"DEBUG"}
|
||||
|
Reference in New Issue
Block a user