Skip to content

Commit ab3ea24

Browse files
committed
Fixed
1 parent 986d08a commit ab3ea24

18 files changed

+166
-141
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 4.0)
22

33
message(STATUS " CMakeLists: NodeGraph")
44

55
option(BUILD_NODEGRAPH_TESTS "Build Tests" OFF)
66
option(BUILD_NODEGRAPH_APP "Build APP" ON)
77

88
# Global Settings
9-
set(CMAKE_CXX_STANDARD 20)
9+
set(CMAKE_CXX_STANDARD 23)
1010
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1212
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
@@ -27,8 +27,7 @@ project(NodeGraph
2727

2828
include(cmake/utils.cmake)
2929

30-
find_package(SDL2 REQUIRED)
31-
find_package(fmt CONFIG REQUIRED)
30+
find_package(SDL3 REQUIRED)
3231
find_package(freetype CONFIG REQUIRED)
3332

3433
set(NODEGRAPH_ROOT ${CMAKE_CURRENT_LIST_DIR})

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-
SDL2::SDL2main
4645
Zing::Zing
4746
${PLATFORM_LINKLIBS}
4847
)

app/demo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <filesystem>
2-
#include <fmt/format.h>
2+
#include <format>
33
#include <memory>
44

55
#include <nodegraph/IconsFontAwesome5.h>
@@ -64,15 +64,15 @@ void demo_hierarchy_editor()
6464
}
6565

6666
std::string type = widget->GetLayout()->GetLayoutType() == LayoutType::Horizontal ? "Horizontal" : "Vertical";
67-
node_open = ImGui::TreeNode(widget, fmt::format("{} ({})", widget->GetLabel(), type).c_str());
67+
node_open = ImGui::TreeNode(widget, std::format("{} ({})", widget->GetLabel(), type).c_str());
6868

6969
if (node_open)
7070
{
7171
auto layout = widget->GetLayout();
7272
if (!layout->GetChildren().empty())
7373
{
7474
// std::string type = layout->GetLayoutType() == LayoutType::Horizontal ? "Horizontal" : "Vertical";
75-
// bool node_open = ImGui::TreeNode(layout, fmt::format("({} Children)", type).c_str());
75+
// bool node_open = ImGui::TreeNode(layout, std::format("({} Children)", type).c_str());
7676
// if (node_open)
7777
{
7878

app/main.cpp

Lines changed: 143 additions & 110 deletions
Large diffs are not rendered by default.

app/nodes/node_oscillator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include <cassert>
22

3-
#include <fmt/format.h>
4-
53
#include <nodes/node_oscillator.h>
64
#include <utils/wavetable.h>
75

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] magic-enum catch2 --triplet x64-windows-static-md --recurse
13+
vcpkg install pkgconf tinyfiledialogs tinydir cppcodec ableton-link concurrentqueue tinydir kissfft portaudio stb date fmt clipp tomlplusplus glm sdl3[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] magic-enum catch2 --triplet ${triplet[0]} --recurse
16+
./vcpkg install portaudio stb date tinydir fmt clipp tomlplusplus glm sdl3[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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ s_sliderTipBorderSize = 0.0
5656
s_sliderTipFontPad = 7.0
5757
s_sliderTipFontSize = 36.0
5858
s_sliderTipShadowSize = 4.0
59-
s_windowSize = [ 3840.0, 2224.0 ]
59+
s_windowSize = [ 3840.0, 2036.0 ]

src/canvas_imgui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ void CanvasImGui::FillGradientRoundedRectVarying(const NRectf& rc, const glm::ve
123123
auto flags = 0;
124124
if (radius.x > 0.0f)
125125
{
126-
flags |= ImDrawCornerFlags_TopLeft;
126+
flags |= ImDrawFlags_RoundCornersTopLeft;
127127
worldSize0 = WorldSizeToPixelSize(radius.x);
128128
}
129129
if (radius.y > 0.0f)
130130
{
131-
flags |= ImDrawCornerFlags_TopRight;
131+
flags |= ImDrawFlags_RoundCornersTopRight;
132132
worldSize0 = WorldSizeToPixelSize(radius.y);
133133
}
134134
if (radius.z > 0.0f)
135135
{
136-
flags |= ImDrawCornerFlags_BotRight;
136+
flags |= ImDrawFlags_RoundCornersBottomRight;
137137
worldSize0 = WorldSizeToPixelSize(radius.z);
138138
}
139139
if (radius.w > 0.0f)
140140
{
141-
flags |= ImDrawCornerFlags_BotLeft;
141+
flags |= ImDrawFlags_RoundCornersBottomLeft;
142142
worldSize0 = WorldSizeToPixelSize(radius.w);
143143
}
144144

0 commit comments

Comments
 (0)