A project to learn basic OpenGL.
Getting project setup:
-
Get an IDE
- Get Microsoft Visual Studio Community download
-
Software dependencies
- I'm using vcpkg. This a package manager for C\C++ libraries from Microsoft.
- for this project I'm using GLFW, GLAD, GLM and SOIL2.
- Installed the files above (replace libfile with names above)
> ./vcpkg install "libfile":x64-windows-static - All installed libraries are immediately ready to be #include'd and used in your project without additional configuration.
> .\vcpkg\vcpkg integrate install
-
References
NOTE: make sure All Configurations is selected
- Configuration Properties > General
- set the output directory to ./../bin/ to provide common place for the executable
- Configuration Properties > Debugging
- change the Working Directory from ProjectDir to OutDir
- Configuration Properties > Linker > Input
- add the Additional Dependencies (glfw3.lib; glew.lib; soil2.lib opengl32.lib) keep the defaults already there.
- may need to do release and debug configurations separately additional dependencies.
- could do this an not worry about all the linkage hassle
- Properties > Use Vcpkg > yes
- Properties > Use static libraries > yes
- Properties > Use AutoLink > yes
- Properties > Triplet > x64-windows-static
- Set an entry point if needed for the program:
- Configuration Properties > Linker > System (ensure that the SubSystem is set to Console (/SUBSYSTEM:CONSOLE))