2D scene rendering + image loading #15
@@ -30,3 +30,7 @@ target_link_libraries(${ENGINE_NAME} PUBLIC
|
|||||||
imgui
|
imgui
|
||||||
entt
|
entt
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${ENGINE_NAME} PRIVATE
|
||||||
|
stb_image
|
||||||
|
)
|
||||||
|
|||||||
Vendored
+9
-3
@@ -4,11 +4,11 @@ add_library(vulkan INTERFACE)
|
|||||||
find_package(Vulkan REQUIRED COMPONENTS shaderc_combined)
|
find_package(Vulkan REQUIRED COMPONENTS shaderc_combined)
|
||||||
|
|
||||||
# Adding SPIRV-Reflect to vulkan interface
|
# Adding SPIRV-Reflect to vulkan interface
|
||||||
target_sources(vulkan INTERFACE
|
target_sources(vulkan INTERFACE
|
||||||
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect/spirv_reflect.c
|
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect/spirv_reflect.c
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(vulkan INTERFACE
|
target_include_directories(vulkan INTERFACE
|
||||||
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect
|
${Vulkan_INCLUDE_DIRS}/SPIRV-Reflect
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -34,13 +34,19 @@ target_include_directories(glm INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/glm)
|
|||||||
add_library(entt INTERFACE)
|
add_library(entt INTERFACE)
|
||||||
target_include_directories(entt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/entt)
|
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)
|
# 5. IMGUI (static)
|
||||||
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
|
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
|
||||||
|
|
||||||
add_library(imgui STATIC
|
add_library(imgui STATIC
|
||||||
${IMGUI_DIR}/imgui.cpp
|
${IMGUI_DIR}/imgui.cpp
|
||||||
${IMGUI_DIR}/imgui_draw.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_tables.cpp
|
||||||
${IMGUI_DIR}/imgui_widgets.cpp
|
${IMGUI_DIR}/imgui_widgets.cpp
|
||||||
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
|
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
|
||||||
|
|||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
|
#include "stb_image.h"
|
||||||
Vendored
+7988
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user