Skip to content

Commit bbb1b80

Browse files
committed
Running again
1 parent f95354a commit bbb1b80

10 files changed

Lines changed: 66 additions & 67 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ include(cmake/utils.cmake)
3030
find_package(SDL2 REQUIRED)
3131
find_package(fmt REQUIRED)
3232
find_package(freetype CONFIG REQUIRED)
33-
find_package(imgui REQUIRED)
3433

3534
set(NODEGRAPH_ROOT ${CMAKE_CURRENT_LIST_DIR})
3635
set(M3RDPARTY_DIR ${CMAKE_CURRENT_LIST_DIR}/m3rdparty)

app/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ target_include_directories(${APP_NAME}
4242
target_link_libraries (${APP_NAME}
4343
PRIVATE
4444
NodeGraph::NodeGraph
45-
imgui::imgui
4645
SDL2::SDL2main
4746
Zing::Zing
4847
${PLATFORM_LINKLIBS}

app/demo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ void demo_resize(const glm::vec2& size, IFontTexture* pFontTexture)
240240
spSocket->SetConstraints(glm::uvec2(LayoutConstraint::Preferred, LayoutConstraint::Expanding));
241241
spHorzLayout->AddChild(spSocket);
242242

243+
/*
243244
auto& settings = Zest::GlobalSettingsManager::Instance();
244245
auto theme = settings.GetCurrentTheme();
245-
settings.Load(fs::path(NODEGRAPH_ROOT) / "theme.toml");
246+
settings.Load(fs::path(NODEGRAPH_ROOT) / "theme.toml");*/
246247
}
247248
spCanvas->SetPixelRegionSize(size);
248249
}
@@ -405,9 +406,11 @@ void demo_cleanup()
405406
{
406407
Zing::audio_destroy();
407408

409+
/*
408410
auto& settings = Zest::GlobalSettingsManager::Instance();
409411
auto theme = settings.GetCurrentTheme();
410412
settings.Save(fs::path(NODEGRAPH_ROOT) / "theme.toml");
413+
*/
411414

412415
spCanvas.reset();
413416
}

app/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include <zest/logger/logger.h>
2222
#include <zest/settings/settings.h>
23+
#include <zest/time/profiler.h>
2324

2425
#include <nodegraph/vulkan/vulkan_imgui_texture.h>
2526
#include <nodegraph/IconsFontAwesome5.h>
@@ -370,6 +371,8 @@ static void FramePresent(ImGui_ImplVulkanH_Window* wd)
370371
// A plain old vulkan window. Just to get an IMGUI surface
371372
int main(int, char**)
372373
{
374+
Zest::Profiler::Init();
375+
373376
// Setup SDL
374377
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0)
375378
{

libs/zing

Submodule zing updated 1 file

prebuild.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if not exist "vcpkg\vcpkg.exe" (
1010

1111
cd vcpkg
1212
echo Installing Libraries
13-
vcpkg install pkgconf cppcodec ableton-link concurrentqueue tinydir kissfft portaudio stb date fmt clipp tomlplusplus glm sdl2[vulkan] imgui[sdl2-binding,freetype,vulkan-binding] magic-enum catch2 --triplet x64-windows-static-md --recurse
13+
vcpkg install pkgconf cppcodec ableton-link concurrentqueue tinydir kissfft portaudio stb date fmt clipp tomlplusplus glm sdl2[vulkan] magic-enum catch2 --triplet x64-windows-static-md --recurse
1414
cd %~dp0
1515
echo %Time%
1616

prebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ "$(uname)" == "Darwin" ]; then
1313
fi
1414

1515
cd vcpkg
16-
./vcpkg install portaudio stb date tinydir fmt clipp tomlplusplus glm sdl2[vulkan] imgui[sdl2-binding,freetype,vulkan-binding] magic-enum catch2 --triplet ${triplet[0]} --recurse
16+
./vcpkg install portaudio stb date tinydir fmt clipp tomlplusplus glm sdl2[vulkan] magic-enum catch2 --triplet ${triplet[0]} --recurse
1717
if [ "$(uname)" != "Darwin" ]; then
1818
./vcpkg install glib --triplet ${triplet[0]} --recurse
1919
fi

settings.toml

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
1-
['Default Setting']
1+
[themes.defaultTheme]
2+
b_debugShowLayout = false
23
b_windowMaximized = true
4+
c_gridLines = [ 0.25, 0.25, 0.25, 1.0 ]
5+
c_knobChannelColor = [ 0.38040345907211304, 0.38040345907211304, 0.38040345907211304, 1.0 ]
6+
c_knobChannelHLColor = [ 0.8213256597518921, 0.1372821033000946, 0.1372821033000946, 1.0 ]
7+
c_knobFillColor = [ 0.45098039507865906, 0.45098039507865906, 0.45098039507865906, 1.0 ]
8+
c_knobFillHLColor = [ 0.4927954077720642, 0.4927954077720642, 0.4927954077720642, 1.0 ]
9+
c_knobMarkColor = [ 1.0, 1.0, 1.0, 1.0 ]
10+
c_knobMarkHLColor = [ 0.6941176652908325, 0.6823529601097107, 0.6823529601097107, 1.0 ]
11+
c_knobShadowColor = [ 0.2219020128250122, 0.2199835479259491, 0.2199835479259491, 1.0 ]
12+
c_knobTextColor = [ 0.8196078538894653, 0.8196078538894653, 0.8196078538894653, 1.0 ]
13+
c_nodeBorderColor = [ 0.0, 0.0, 0.0, 1.0 ]
14+
c_nodeCenterColor = [ 0.5, 0.5, 0.5, 1.0 ]
15+
c_nodeShadowColor = [ 0.10000000149011612, 0.10000000149011612, 0.10000000149011612, 0.5 ]
16+
c_nodeTitleBorderColor = [ 0.319884717464447, 0.319884717464447, 0.319884717464447, 1.0 ]
17+
c_nodeTitleCenterColor = [ 0.5936599373817444, 0.1779268980026245, 0.1779268980026245, 0.699999988079071 ]
18+
c_nodeTitleShadowColor = [ 0.19596540927886963, 0.19596540927886963, 0.19596540927886963, 1.0 ]
19+
c_sliderBorderColor = [ 0.29971182346343994, 0.29971182346343994, 0.29971182346343994, 1.0 ]
20+
c_sliderCenterColor = [ 0.10662823915481567, 0.0845036432147026, 0.0845036432147026, 1.0 ]
21+
c_sliderShadowColor = [ 0.0, 0.0, 0.0, 1.0 ]
22+
c_sliderThumbColor = [ 0.8443803787231445, 0.2920047342777252, 0.2920047342777252, 1.0 ]
23+
c_sliderThumbShadowColor = [ 0.0, 0.0, 0.0, 1.0 ]
24+
c_sliderTipBorderColor = [ 0.7665705680847168, 0.7665705680847168, 0.7665705680847168, 1.0 ]
25+
c_sliderTipCenterColor = [ 0.23054754734039307, 0.23054754734039307, 0.23054754734039307, 1.0 ]
26+
c_sliderTipFontColor = [ 0.6791103482246399, 0.7655288577079773, 0.8386167287826538, 1.0 ]
27+
c_sliderTipShadowColor = [ 0.10951006412506104, 0.10951006412506104, 0.10951006412506104, 1.0 ]
28+
c_socketColor = [ 0.0, 0.0, 0.0, 0.0 ]
29+
s_gridLineSize = 2.0
30+
s_knobChannelGap = 3.0
31+
s_knobChannelWidth = 8.0
32+
s_knobShadowSize = 3.0
33+
s_knobTextInset = 3.0
34+
s_knobTextSize = 24.0
35+
s_nodeBorderRadius = 4.0
36+
s_nodeBorderSize = 2.0
37+
s_nodeShadowSize = 2.0
38+
s_nodeTitleBorder = 0.0
39+
s_nodeTitleBorderRadius = 8.0
40+
s_nodeTitleBorderSize = 0.0
41+
s_nodeTitleFontPad = 2.0
42+
s_nodeTitlePad = 4.0
43+
s_nodeTitleShadowSize = 0.0
44+
s_nodeTitleSize = 26.0
45+
s_sliderBorderRadius = 4.0
46+
s_sliderBorderSize = 0.0
47+
s_sliderFontPad = 4.0
48+
s_sliderShadowSize = 3.0
49+
s_sliderThumbPad = 2.0
50+
s_sliderThumbRadius = 4.0
51+
s_sliderThumbShadowSize = 1.0
52+
s_sliderTipBorderRadius = 5.0
53+
s_sliderTipBorderSize = 0.0
54+
s_sliderTipFontPad = 7.0
55+
s_sliderTipFontSize = 36.0
56+
s_sliderTipShadowSize = 4.0
357
s_windowSize = [ 3840.0, 2036.0 ]

src/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ project(NodeGraph
66
find_package(glm CONFIG REQUIRED)
77
find_package(Vulkan REQUIRED)
88
find_package(fmt CONFIG REQUIRED)
9-
find_package(PkgConfig REQUIRED)
9+
find_package(PkgConfig REQUIRED)
1010
find_package(date CONFIG REQUIRED)
11-
12-
pkg_check_modules(tomlplusplus REQUIRED IMPORTED_TARGET tomlplusplus)
1311

1412
set(NODEGRAPH_VULKAN_SOURCE
1513
${NODEGRAPH_ROOT}/src/vulkan/vulkan_imgui_texture.cpp
@@ -59,7 +57,6 @@ add_library(NodeGraph::NodeGraph ALIAS NodeGraph)
5957

6058
target_link_libraries(NodeGraph
6159
PRIVATE
62-
PkgConfig::tomlplusplus
6360
PUBLIC
6461
Zing::Zing
6562
fmt::fmt-header-only
@@ -73,7 +70,6 @@ PRIVATE
7370
${CMAKE_BINARY_DIR}
7471
PUBLIC
7572
$<BUILD_INTERFACE:${NODEGRAPH_ROOT}/include>
76-
$<BUILD_INTERFACE:${NODEGRAPH_ROOT}/tomlplusplus/include>
7773
$<INSTALL_INTERFACE:include>
7874
)
7975

theme.toml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)