This is a project template for D and GLFW/OpenGL with DUB. It contains code for dynamically loading and initialization of GLFW and OpenGL libraries.
Check out the dub.json and source/libloader.d files for more info.
D uses the bindbc-glfw and bindbc-opengl packages. It is handled by DUB automatically. Please, make sure you have GLFW and OpenGL installed on your system.
You don't need to install GLFW. glfw3.dll comes with this repository. It may be found in the libs folder.
// dub.json
"dependencies": {
"bindbc-glfw": "~>1.0.1",
"bindbc-opengl": "~>1.0.3"
},
"versions": ["GLFW_33", "GL_33", "GL_AllowDeprecated"]
// dub.sdl
dependency "bindbc-glfw" version="~>1.0.1"
dependency "bindbc-opengl" version="~>1.0.3"
versions "GLFW_33" "GL_33" "GL_AllowDeprecated"
dub --build=release
--build=release is optional. Simply dub will compile and run the project automatically.
All code is licensed under BSL software license.
