Can I do the tutorials on linux?
We have tested the tutorials on Windows and Visual studio on the lab computers and this is what we support. It may work on your computer if it supports OpenGL 4.3 or higher. To get it to work on linux you will need to install the software dependencies on your own.
Can I do the tutorials on OSX?
No. OSX does not support all the OpenGL features we make use of.
Why do the tutorials require OpenGL 4.3?
OpenGL 4.3 has support for asynchronous debug messages which greatly help debugging applications as we learn OpenGL for the first time. Some drivers implement async debug as an extensions for lower version numbers.
What is Git? Do I have to use it?
Git is a revision control system. We highly recommend to use it, but if you really do not want to there is an option to download the tutorial package as a zip file. You may have to download it several times during the course, though, since not all tutorials will be released the first week.
What is cmake? Do I have to use it?
CMake is a tool that is used to create project files for several platforms and build systems. This allows us to have the projec t
Can I get a simplified version of the code to work on my own projects?
Sure! You can find a simplified version of the code in this gitlab repository, or downloading it from there or through this link.
You will have to get some of the code from labs in the shaders for it to render, we couldn't just post the solutions to those.
Studio
What smart hotkeys can I use?
Keys | Function |
---|---|
F5 | Compile and run (Also: Debug - Continue) |
F7 | Build the project, without running |
F9 | Debug - Set breakpoint |
F10 | Debug - Step over |
F11 | Debug - Step into |
Shift + F11 | Debug - Step out |
F12 | Go to definition |
Alt + F12 | Peek definition |
Shift + F12 | Find all references |
Ctrl + k, Ctrl + c | Comment selection |
Ctrl + k, Ctrl + u | Uncomment selection |
Alt + Up/Down | Move line |
Alt + Shift + Up/Down | Multiline cursor |
Ctrl + r, Ctrl + r | Smart rename of symbol/function/etc |
Style
What code style is used? How do I use it too?
We have use the clang-format tool to format our code and have a customized settings file to our liking. You can find it in the snippets of the project at gitlab. We use the clang-format tool to format our code and have a customized settings file to our liking. You can find it in the snippets of the project at gitlab.
Visual Studio has support for the version 5.0 of this tool since VS2017. You can enable it in Options > Text Editor > C/C++ > Formatting > Enable ClangFormat support.
We recommend that in the option below that one you set it to only run when invoked manually, as the other one sometimes doesn't work as expected.