A port of my Java software renderer to Cpp and Raylib including Pikuma's
This also includes a C++ version of Pikuma's software renderer. "3D Programming from scratch". It doesn't not include Textures.
This repository uses a root CMakeLists.txt to manage sub-projects. You do not need to edit settings.json to switch projects.
-
Clean Setup:
- Remove
cmake.sourceDirectoryfrom.vscode/settings.json. - Delete the
buildfolder entirely to prevent cache conflicts. - Open the Command Palette (
Ctrl+Shift+P) and run CMake: Select a Kit (choose your compiler, e.g., GCC or Clang). - Run CMake: Delete Cache and Reconfigure to ensure the project is indexed.
- Remove
-
Select Targets (Command Palette):
- Press
Ctrl+Shift+P. - Run CMake: Set Build Target -> Choose
SoftRenderer. - Run CMake: Set Launch/Debug Target -> Choose
SoftRenderer(executable). - Note: You must set both. Build Target controls compilation; Launch/Debug Target controls execution.
- Press
-
Build and Run:
- Click "Build" or press
F7. - Click "Play" (Run) or press
Shift+F5.
- Click "Build" or press