Skip to content

Commit

Permalink
[RFR] : extract uniform widgets in another file
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Aug 5, 2024
1 parent d739143 commit b83be05
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Backends/MainBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <Headers/RenderPackHeaders.h>
#include <glad/glad.h>
#include <ImGuiPack.h>
#include <InAppGpuProfiler/iagp.h>
#include <iagp/iagp.h>
#include <ctools/Logger.h>
#include <ctools/GLVersionChecker.h>
#include <ImGuiPack.h>
Expand Down
4 changes: 2 additions & 2 deletions src/Headers/NoodlesPlateBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define NoodlesPlate_Prefix "NoodlesPlate"
#define NoodlesPlate_BuildNumber 789
#define NoodlesPlate_BuildNumber 792
#define NoodlesPlate_MinorNumber 7
#define NoodlesPlate_MajorNumber 0
#define NoodlesPlate_BuildId "0.7.789"
#define NoodlesPlate_BuildId "0.7.792"
2 changes: 1 addition & 1 deletion src/Panes/ConfigSwitcherPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool ConfigSwitcherPane::DrawPanes(const uint32_t& /*vCurrentFrame*/, bool* vOpe
return false;
}

bool ConfigSwitcherPane::DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImRect& vMaxRect /*vMaxSize*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) {
bool ConfigSwitcherPane::DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImRect& /*vMaxRect*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) {
ShaderKeyConfigSwitcherUnified::Instance()->DrawDialog();
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Panes/ProfilerPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <Gui/MainFrame.h>
#include <Backends/MainBackend.h>
#include <ImGuiPack.h>
#include <InAppGpuProfiler/iagp.h>
#include <iagp/iagp.h>
#include <ctools/cTools.h>
#include <ctools/Logger.h>
#include <Helper/InterfacePanes.h>
Expand Down
10 changes: 7 additions & 3 deletions src/Panes/UniformsPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <SoGLSL/src/CodeTree/CodeTree.h>
#include <SoGLSL/src/Systems/GizmoSystem.h>
#include <SoGLSL/src/Systems/TimeLineSystem.h>
#include <SoGLSL/src/Uniforms/UniformWidgets.h>

#include <cinttypes> // printf zu

Expand Down Expand Up @@ -189,8 +190,11 @@ void UniformsPane::DrawImGuiRenderPackCategory(RenderPackWeak vRp, bool vCheckMo

void UniformsPane::DrawImGuiUniformWidget(UniformsMultiLoc* vUniLoc) {
if (vUniLoc != nullptr) {
MainBackend::Instance()->NeedRefresh(//
MainBackend::Instance()->puCodeTree->DrawImGuiUniformWidgetForPanes(//
vUniLoc->uniform, ImGui::GetContentRegionAvail().x, SHADER_UNIFORM_FIRST_COLUMN_WIDTH));
MainBackend::Instance()->NeedRefresh( //
UniformWidgets::drawImGuiUniformWidgetForPanes( //
MainBackend::Instance()->puCodeTree,
vUniLoc->uniform,
ImGui::GetContentRegionAvail().x,
SHADER_UNIFORM_FIRST_COLUMN_WIDTH));
}
}
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <ctools/Logger.h>
#include <Headers/RenderPackHeaders.h>
#include <ImGuiPack.h>
#include <InAppGpuProfiler/iagp.h>
#include <iagp/iagp.h>
#ifdef USE_SDL2
#include <ImGuiPack/3rdparty/imgui_docking/backends/imgui_impl_sdl.h>
#else
Expand Down

0 comments on commit b83be05

Please sign in to comment.