3D OBJ loading

This commit is contained in:
2026-04-10 22:09:01 -05:00
parent f0117b8e6e
commit d02673e04a
10 changed files with 269 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
include(FetchContent)
if(NOT TARGET fast_obj)
FetchContent_Declare(
fast_obj
GIT_REPOSITORY https://github.com/thisistherk/fast_obj.git
GIT_TAG master
)
FetchContent_MakeAvailable(fast_obj)
endif()
set(fast_obj_FOUND TRUE)
set(FAST_OBJ_INCLUDE_DIRS "${fast_obj_SOURCE_DIR}")
set(FAST_OBJ_LIBRARIES fast_obj)
mark_as_advanced(FAST_OBJ_INCLUDE_DIRS FAST_OBJ_LIBRARIES fast_obj_FOUND)
+1 -1
View File
@@ -28,7 +28,7 @@ target_link_libraries(${DUSK_LIBRARY_TARGET_NAME} PUBLIC
target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC
DUSK_SDL2
DUSK_OPENGL
DUSK_OPENGL_LEGACY
# DUSK_OPENGL_LEGACY
DUSK_LINUX
DUSK_DISPLAY_SIZE_DYNAMIC
DUSK_DISPLAY_WIDTH_DEFAULT=640