2D scene rendering + image loading #15

Merged
burkkyy merged 18 commits from issue-14/2d-scene-support-spritecomponent-2d-render-system into main 2026-09-30 15:56:33 -07:00
4 changed files with 8003 additions and 3 deletions
Showing only changes of commit 171634ca01 - Show all commits
+4
View File
@@ -30,3 +30,7 @@ target_link_libraries(${ENGINE_NAME} PUBLIC
imgui
entt
)
target_link_libraries(${ENGINE_NAME} PRIVATE
stb_image
)
+9 -3
View File
@@ -4,11 +4,11 @@ add_library(vulkan INTERFACE)
find_package(Vulkan REQUIRED COMPONENTS shaderc_combined)
# Adding SPIRV-Reflect to vulkan interface
target_sources(vulkan INTERFACE
target_sources(vulkan INTERFACE
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect/spirv_reflect.c
)
target_include_directories(vulkan INTERFACE
target_include_directories(vulkan INTERFACE
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect
)
@@ -34,13 +34,19 @@ target_include_directories(glm INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/glm)
add_library(entt INTERFACE)
target_include_directories(entt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/entt)
# stb_image (static)
add_library(stb_image STATIC
${CMAKE_CURRENT_SOURCE_DIR}/stb_image/stb_image.cpp
)
target_include_directories(stb_image PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/stb_image)
# 5. IMGUI (static)
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
add_library(imgui STATIC
${IMGUI_DIR}/imgui.cpp
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_demo.cpp # remove this
${IMGUI_DIR}/imgui_demo.cpp # remove this
${IMGUI_DIR}/imgui_tables.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
+2
View File
@@ -0,0 +1,2 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
+7988
View File
File diff suppressed because it is too large Load Diff