File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed 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
-
6
4
namespace nbl ::ext::imgui
7
5
{
8
6
class NBL_API2 UI final : public core::IReferenceCounted{
@@ -52,7 +50,7 @@ namespace nbl::ext::imgui
52
50
53
51
void InputFloat4 (char const * label, float * value);
54
52
55
- void InputFloat3 (char const * label, glm::vec3 & value);
53
+ void InputFloat3 (char const * label, nbl::core::vector3df & value);
56
54
57
55
bool Combo (
58
56
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