Skip to content

Commit

Permalink
Refactor material (#947)
Browse files Browse the repository at this point in the history
Refactor Material Editor
  • Loading branch information
durswd authored Jul 20, 2023
1 parent 1895d81 commit cd1d7f7
Show file tree
Hide file tree
Showing 8 changed files with 444 additions and 728 deletions.
16 changes: 0 additions & 16 deletions Dev/Cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,6 @@ if(BUILD_VIEWER)

set(BUILD_TEST_TEMP ${BUILD_TEST})
set(BUILD_TEST OFF)
add_subdirectory("3rdParty/AltseedRHI")
set_target_properties (AltseedRHI PROPERTIES FOLDER Thirdparty)
set(BUILD_TEST ${BUILD_TEST_TEMP})

if(APPLE)
add_dependencies(AltseedRHI ExternalProject_zlib ExternalProject_libpng)
else()
add_dependencies(AltseedRHI ExternalProject_glew)
endif()

target_include_directories(
AltseedRHI
PRIVATE
${EFK_THIRDPARTY_INCLUDES}
)

add_subdirectory("EffekseerMaterial")
set_property(TARGET EffekseerMaterial PROPERTY FOLDER Libraries)
add_subdirectory("EffekseerMaterialEditor")
Expand Down
18 changes: 6 additions & 12 deletions Dev/Cpp/EffekseerMaterialEditor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ if(WIN32)
add_dependencies(EffekseerMaterialEditor ExternalProject_glew ExternalProject_glfw)
endif()

target_compile_definitions(EffekseerMaterialEditor PRIVATE NOMINMAX)

target_include_directories(
EffekseerMaterialEditor
PRIVATE
${EFK_THIRDPARTY_INCLUDES}
../include/
${PROJECT_SOURCE_DIR}/../3rdParty/AltseedRHI/include/
../EffekseerMaterial/
ThirdParty/picojson/)

Expand All @@ -63,15 +64,17 @@ target_link_directories(
target_link_libraries(
EffekseerMaterialEditor
PRIVATE
Effekseer
EffekseerRendererGL
EffekseerMaterial
EditorCommon
AltseedRHI
Boxer
nfd
imgui
imgui_platform
imgui-node-editor
ImGradientHDR
IPC
)

if(USE_LIBPNG_LOADER)
Expand All @@ -97,9 +100,6 @@ if (WIN32)
target_link_libraries(
EffekseerMaterialEditor
PRIVATE
Effekseer # to use shader loader
EffekseerRendererGL # to use shader loader
IPC
debug libglew32d
optimized libglew32)

Expand All @@ -118,9 +118,6 @@ find_library(CORE_VIDEO_FRAMEWORK CoreVideo)
target_link_libraries(
EffekseerMaterialEditor
PRIVATE
Effekseer # to use shader loader
EffekseerRendererGL # to use shader loader
IPC
${CMAKE_THREAD_LIBS_INIT}
${COCOA_FRAMEWORK}
${OPENGL_LIBRARIES}
Expand All @@ -147,9 +144,6 @@ include_directories(
target_link_libraries(
EffekseerMaterialEditor
PRIVATE
Effekseer # to use shader loader
EffekseerRendererGL # to use shader loader
IPC
dl
stdc++fs
${CMAKE_THREAD_LIBS_INIT}
Expand All @@ -160,7 +154,7 @@ endif()

set_target_properties(EffekseerMaterialEditor PROPERTIES LINKER_LANGUAGE CXX)

set(files ${hs} ${srcs} ${srcs_third_imgui_platform})
set(files ${hs} ${srcs})

set(files ${srcs} ${hs})

Expand Down
Loading

0 comments on commit cd1d7f7

Please sign in to comment.