Skip to content

Compilingjay/cpu-renderer

Repository files navigation

CPU Renderer

An old simple CPU-based renderer built using pure C++ and SDL3. Only renders shape faces, edges, and vertices.

Required Dependencies

  • A C++20 compiler
  • CMake

Building

If you do not have SDL3 on your system: run the following at project root:

git submodule update --init --recursive

Else, just run the following:

cmake . -B build
cmake --build build

Running

To use the program:

cd build
./renderer <window title/> <path to .obj file/>

You can rotate the model using WASDQE.

Use 1, 2, 3, or 4 to toggle between settings for vertices, edges, and faces.

Use C and X to enable/disable backface culling.

Copyright

Code is (c) 2024 Compilingjay, All rights reserved.

About

Pure CPU rendering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published