Our great sponsors
-
LearnOpenGL
Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
glew-cmake
GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
-
opengl-imgui-cmake-template
👾 template repo for getting started with opengl together with imgui using cmake
I only remember how for mingw64, but its probably a similar process. 1 - Compile glfw in cmake, build it with vstudio (this makes two .h files if im not wrong). 2 - use this to get a glad.h file: https://glad.dav1d.de/ 3 - Put all the .h files in your project folder (or in the mingw include folder) 4 - You need to link some libraries in the tasks.json file (if you dont have one search it up) Here's the ones I have linked:
I did it by using CMake and simply linking my executable with glew-cmake.
github template repo
Here you can find my toy engine, the CMakeLists may be a bit of a mess though, I am kind of a beginner when it comes to using CMake, but the idea is to let CMake generate the Visual Studio files and folders architectures on its own, it's a very powerful tool, very useful if you ever want to go cross-platform.