A sandbox rendering engine written in C++ and OpenGL.
Make sure cmake
and GCC
are installed. We are using GDB
debugger.
sudo apt update
sudo apt install cmake build-essential gdb g++
Vcpkg is used to manage dependencies. Install it and install the dependencies. We are using manifest mode and thus the dependencies are already listed in the vcpkg.json
file. To install the dependencies, run the following command:
vcpkg install
alternatively, you can also just use the Vcpkg extension in VSCode. It will automatically install the dependencies.
Other than the packages vckpg suggests to install, the following would also be needed (on Linux):
sudo apt install libglfw3-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config
Same as above. You may need to install the following before running vcpkg install
:
brew install pkg-config
- https://code.visualstudio.com/docs/languages/cpp
- https://learn.microsoft.com/en-us/vcpkg/users/buildsystems/cmake-integration
- https://github.com/KhronosGroup/glTF-Sample-Assets
- Q. CMakeLists.txt throws some errors.
- A. Start by deleting the
build
folder and try again.
- A. Start by deleting the
- Q. Vcpkg installed libs throwing error in Cmake, looking for config.
- Make sure to set the correct triplet for the vcpkg in settings.json. For example,
-DVCPKG_TARGET_TRIPLET=x64-linux
- Make sure to set the correct triplet for the vcpkg in settings.json. For example,
- Q. How to check OpenGL version supported by Nvidia GPU?
- A.
glxinfo | grep "OpenGL version"
orglxinfo | grep OpenGL
- A.
- Cross platform scaling
- DPI & Scaling
- Remove VCPKG extension and use directly in CMake
- Figure out how to add new cpp files correctly without needing to delete the build folder.
- Lift mouse settings on app level instead of per-scene level
- Scene Graph
- Find optimised way of doing transforms