Tutorials made by IMAC students to learn, debug and use efficiently OpenGL.
You need to install Cmake to build the project, and RenderDoc if you want to follow the debugging exercices.
You will need a C++ compiler.
sudo apt-get install build-essential
You will also need the OpenGl and SDL2 packages.
sudo apt-get install libsdl2-dev
sudo apt-get install libglu1-mesa-dev mesa-common-dev
The recommended compiler is MSVC. To install it you will need Visual Studio (which is not VSCode) and select the C++ development package during installation. The MingW compiler will work as well if you prefer to use it.
You can handle the CMakeLists.txt
in any way you like, here's some way to use it :
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
If you are on linux, you can then run make
and launch the executable with ./build/bin/Debug/opengl-tutorial
.
If you are on windows, open the project with visual studio.
Open this folder with the CMake...
option in file->open on Visual Studio, and run the project. Be sure to run the CMakeLists.txt
project from the drop-down.
Use the CMakeTools
plugin, build with f7
then run with f5
(But be carefull to be on the right platform, there is a launch file for windows and for linux).
Follow this tutorial.
Follow this tutorial.