mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-05 13:28:04 +03:00
Before this, all objects that share a texture were drawn at once. Objects were not depth-sorted, so if a transparent object was drawn first, objects behind it were not drawn. After this, dungeon is drawn for each cell, sorted by distance from the camera position. To reduce the number of cells to be drawn, PVS (Potentially Visible Set) stored in dgn files is used.
90 lines
2.6 KiB
Meson
90 lines
2.6 KiB
Meson
# sources for xsystem4
|
|
xsystem4 = ['audio.c',
|
|
'asset_manager.c',
|
|
'cJSON.c',
|
|
'draw.c',
|
|
'effect.c',
|
|
'ffi.c',
|
|
'fnl_render.c',
|
|
'format.c',
|
|
'heap.c',
|
|
'input.c',
|
|
'page.c',
|
|
'resume.c',
|
|
'savedata.c',
|
|
'scene.c',
|
|
'sprite.c',
|
|
'system4.c',
|
|
'text.c',
|
|
'video.c',
|
|
'vm.c',
|
|
|
|
'dungeon/dgn.c',
|
|
'dungeon/dtx.c',
|
|
'dungeon/dungeon.c',
|
|
'dungeon/map.c',
|
|
'dungeon/renderer.c',
|
|
'dungeon/skybox.c',
|
|
'dungeon/tes.c',
|
|
|
|
'hll/ACXLoader.c',
|
|
'hll/ADVSYS.c',
|
|
'hll/AliceLogo.c',
|
|
'hll/AliceLogo2.c',
|
|
'hll/AliceLogo3.c',
|
|
'hll/AliceLogo4.c',
|
|
'hll/AliceLogo5.c',
|
|
'hll/AnteaterADVEngine.c',
|
|
'hll/BanMisc.c',
|
|
'hll/Bitarray.c',
|
|
'hll/CharSpriteManager.c',
|
|
'hll/ChipmunkSpriteEngine.c',
|
|
'hll/Confirm.c',
|
|
'hll/Confirm2.c',
|
|
'hll/CrayfishLogViewer.c',
|
|
'hll/DataFile.c',
|
|
'hll/DrawDungeon.c',
|
|
'hll/DrawGraph.c',
|
|
'hll/DrawMovie2.c',
|
|
'hll/DrawPluginManager.c',
|
|
'hll/File.c',
|
|
'hll/FileOperation.c',
|
|
'hll/GoatGUIEngine.c',
|
|
'hll/Gpx2Plus.c',
|
|
'hll/iarray.c',
|
|
'hll/IbisInputEngine.c',
|
|
'hll/InputDevice.c',
|
|
'hll/InputString.c',
|
|
'hll/KiwiSoundEngine.c',
|
|
'hll/MarmotModelEngine.c',
|
|
'hll/Math.c',
|
|
'hll/MenuMsg.c',
|
|
'hll/MsgLogManager.c',
|
|
'hll/MsgLogViewer.c',
|
|
'hll/MsgSkip.c',
|
|
'hll/OutputLog.c',
|
|
'hll/PassRegister.c',
|
|
'hll/PlayDemo.c',
|
|
'hll/PlayMovie.c',
|
|
'hll/SACT2.c',
|
|
'hll/SengokuRanceFont.c',
|
|
'hll/StoatSpriteEngine.c',
|
|
'hll/SystemService.c',
|
|
'hll/SystemServiceEx.c',
|
|
'hll/Timer.c',
|
|
'hll/VSFile.c',
|
|
]
|
|
|
|
xsystem4_deps = [libm, zlib, sdl2, sdl2ttf, sdl2mixer, ffi, gl, glew, cglm, libsys4_dep]
|
|
if chibi.found()
|
|
xsystem4_deps += chibi
|
|
xsystem4 += 'debugger.c'
|
|
add_project_arguments('-DDEBUGGER_ENABLED', language : 'c')
|
|
endif
|
|
|
|
executable('xsystem4', xsystem4,
|
|
dependencies : xsystem4_deps,
|
|
c_args : ['-Wno-unused-parameter'],
|
|
include_directories : incdir,
|
|
install : true)
|