File tree Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Original file line number Diff line number Diff line change 87
87
[submodule "3rdparty/imgui "]
88
88
path = 3rdparty/imgui
89
89
url = git@github.com:ocornut/imgui.git
90
+ [submodule "3rdparty/implot "]
91
+ path = 3rdparty/implot
92
+ url = git@github.com:epezent/implot.git
Original file line number Diff line number Diff line change @@ -250,6 +250,24 @@ if(NBL_BUILD_IMGUI)
250
250
PUBLIC "imgui/backends"
251
251
)
252
252
253
+ # ImPlot
254
+ add_library (implot STATIC
255
+ "implot/implot.h"
256
+ "implot/implot_internal.h"
257
+ "implot/implot.cpp"
258
+ "implot/implot_items.cpp"
259
+ )
260
+ target_include_directories (implot
261
+ PUBLIC "imgui"
262
+ )
263
+ target_link_libraries (implot PUBLIC imgui )
264
+ target_compile_definitions (implot PUBLIC IMPLOT_DEBUG IMPLOT_DLL_EXPORT )
265
+ set_property (TARGET implot PROPERTY CXX_STANDARD 11 )
266
+ if (MSVC )
267
+ target_compile_options (implot PRIVATE /MT /W4 /WX /arch:AVX2 /fp:fast /permissive- )
268
+ else ()
269
+ target_compile_options (implot PRIVATE -Wall -Wextra -pedantic -Werror -mavx2 -Ofast )
270
+ endif ()
253
271
endif ()
254
272
255
273
add_library (aesGladman OBJECT
Original file line number Diff line number Diff line change @@ -238,7 +238,11 @@ macro(nbl_create_ext_library_project EXT_NAME LIB_HEADERS LIB_SOURCES LIB_INCLUD
238
238
target_link_libraries (${LIB_NAME} PUBLIC Nabla )
239
239
target_compile_options (${LIB_NAME} PUBLIC ${LIB_OPTIONS} )
240
240
target_compile_definitions (${LIB_NAME} PUBLIC ${DEF_OPTIONS} )
241
- set_target_properties (${LIB_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
241
+ if (NBL_DYNAMIC_MSVC_RUNTIME )
242
+ set_target_properties (${LIB_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" )
243
+ else ()
244
+ set_target_properties (${LIB_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
245
+ endif ()
242
246
243
247
if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
244
248
add_compile_options (
Original file line number Diff line number Diff line change 1
1
#ifndef NBL_EXT_IMGUI_UI_H
2
2
#define NBL_EXT_IMGUI_UI_H
3
3
4
- #include < glm/vec3.hpp>
5
4
6
5
namespace nbl ::ext::imgui
7
6
{
8
- class NBL_API2 UI final : public core::IReferenceCounted{
7
+ class UI final : public core::IReferenceCounted{
9
8
public:
10
9
11
- explicit UI (
10
+ UI (
12
11
core::smart_refctd_ptr<video::ILogicalDevice> device,
13
12
int maxFramesInFlight,
14
13
core::smart_refctd_ptr<video::IGPURenderpass>& renderPass,
@@ -52,7 +51,7 @@ namespace nbl::ext::imgui
52
51
53
52
void InputFloat4 (char const * label, float * value);
54
53
55
- void InputFloat3 (char const * label, glm::vec3 & value);
54
+ void InputFloat3 (char const * label, nbl::core::vector3df & value);
56
55
57
56
bool Combo (
58
57
char const * label,
Original file line number Diff line number Diff line change @@ -879,14 +879,14 @@ namespace nbl::ext::imgui
879
879
880
880
// -------------------------------------------------------------------------------------------------
881
881
882
- void UI::InputFloat3 (char const * label, glm::vec3& value)
882
+ void UI::InputFloat3 (char const * label, nbl::core::vector3df& value)
883
883
{
884
- float tempValue[3 ]{ value.x , value.y , value.z };
884
+ float tempValue[3 ]{ value.X , value.Y , value.Z };
885
885
InputFloat3 (label, tempValue);
886
886
887
- if (memcmp (tempValue, &value[ 0 ] , sizeof (float ) * 3 ) != 0 )
887
+ if (memcmp (tempValue, &value. X , sizeof (float ) * 3 ) != 0 )
888
888
{
889
- memcpy (&value[ 0 ] , tempValue, sizeof (float ) * 3 );
889
+ memcpy (&value. X , tempValue, sizeof (float ) * 3 );
890
890
}
891
891
}
892
892
You can’t perform that action at this time.
0 commit comments