An experiment with C++, SDL2 and OpenMP-based realtime raytracing on the CPU.
- Move a sphere using either the arrow keys or
w
,a
,s
,d
. - Switch to the next sphere with
space
ortab
. - Toggle fullscreen with
f
orf11
. - Quit with
q
oresc
. - You can also move the current sphere with a joystick, then press a key to select the next one.
- SDL2 (
sdl2
and optionallysdl2_image
,sdl2_mixer
,sdl2_ttf
,sdl2_net
andsdl2_sound
) - OpenMP (
libomp
) - CMake (
cmake
) - GNU Make (
make
)
make
make run
Tested on Arch Linux and macOS.
The spheres can be moved around with a joystick / joypad.
Written with the Orbiton editor.
- Version: 0.1.0
- Author: Alexander F. Rødseth <xyproto@archlinux.org>
- License: MIT