First cut at a replica of the python raycaster. Left side almost works the same but have to sort out math differences.

This commit is contained in:
Zed A. Shaw 2025-01-04 12:20:41 -05:00
parent 6b181382bd
commit ca80736d7c
21 changed files with 2165 additions and 90 deletions

View file

@ -1,27 +1,25 @@
project('lodecaster', 'cpp',
default_options: ['cpp_std=c++20'])
project('raycaster', 'cpp',
default_options: ['cpp_std=c++20'])
catch2 = dependency('catch2-with-main')
fmt = dependency('fmt')
json = dependency('nlohmann_json')
sdl2 = dependency('sdl2')
sdl2_main = dependency('sdl2main')
sfml = dependency('sfml')
dependencies = [
sdl2, sdl2_main,
fmt, json
]
fmt, json, sfml
]
executable('runtests', [
'quickcg.cpp',
'main.cpp',
],
win_subsystem: 'windows',
dependencies: dependencies)
'dbc.cpp',
'matrix.cpp',
'tests/base.cpp',
],
dependencies: dependencies + [catch2])
executable('lodecaster', [
'quickcg.cpp',
'raycaster_flat.cpp',
],
win_subsystem: 'windows',
dependencies: dependencies)
executable('raycaster', [
'dbc.cpp',
'matrix.cpp',
'raycaster.cpp',
],
dependencies: dependencies)