@@ -70,7 +70,7 @@ public:
, uint16_t(m_height)
);
- bool restart = showExampleDialog(this);
+ showExampleDialog(this);
imguiEndFrame();
@@ -105,7 +105,7 @@ public:
// process submitted rendering primitives.
bgfx::frame();
- return !restart;
+ return true;
}
return false;
@@ -161,7 +161,7 @@ public:
@@ -234,7 +234,7 @@ public:
@@ -557,7 +557,7 @@ public:
@@ -768,7 +768,7 @@ public:
@@ -174,7 +174,7 @@ public:
// Set view 0 default viewport.
@@ -240,7 +240,7 @@ public:
@@ -84,7 +84,7 @@ public:
@@ -140,7 +140,7 @@ public:
@@ -141,7 +141,7 @@ public:
@@ -243,7 +243,7 @@ public:
@@ -193,7 +193,7 @@ public:
@@ -348,7 +348,7 @@ public:
@@ -360,7 +360,7 @@ public:
@@ -593,7 +593,7 @@ public:
@@ -305,7 +305,7 @@ public:
ImGui::SetNextWindowPos(
ImVec2(m_width - m_width / 5.0f - 10.0f, 10.0f)
@@ -533,7 +533,7 @@ public:
@@ -228,7 +228,7 @@ public:
@@ -332,7 +332,7 @@ public:
@@ -138,7 +138,7 @@ public:
@@ -256,7 +256,7 @@ public:
@@ -284,7 +284,7 @@ public:
@@ -922,7 +922,7 @@ public:
, uint16_t(m_viewState.m_height)
ImVec2(m_viewState.m_width - m_viewState.m_width / 5.0f - 10.0f, 10.0f)
@@ -1354,7 +1354,7 @@ public:
clearViewMask(s_clearMask, BGFX_CLEAR_NONE, m_clearValues);
s_clearMask = 0;
@@ -2162,7 +2162,7 @@ public:
ImGui::SetNextWindowPos(ImVec2(m_viewState.m_width - 256.0f, 10.0f) );
ImGui::Begin("Settings"
@@ -2860,7 +2860,7 @@ public:
, m_clearValues.m_clearStencil
@@ -265,7 +265,7 @@ public:
@@ -409,7 +409,7 @@ public:
@@ -1980,7 +1980,7 @@ public:
, m_viewState.m_height
@@ -3203,7 +3203,7 @@ public:
@@ -218,7 +218,7 @@ public:
ImGui::SetNextWindowPos(ImVec2((float)m_width - (float)m_width / 4.0f - 10.0f, 10.0f) );
ImGui::SetNextWindowSize(ImVec2((float)m_width / 4.0f, (float)m_height / 2.0f) );
@@ -315,7 +315,7 @@ public:
@@ -588,7 +588,7 @@ public:
@@ -893,7 +893,7 @@ public:
@@ -287,7 +287,7 @@ public:
@@ -481,7 +481,7 @@ public:
@@ -1305,7 +1305,7 @@ public:
@@ -1330,7 +1330,7 @@ public:
@@ -371,7 +371,7 @@ public:
int64_t now = bx::getHPCounter();
static int64_t last = now;
@@ -712,7 +712,7 @@ public:
@@ -182,7 +182,7 @@ public:
@@ -311,7 +311,7 @@ public:
@@ -102,7 +102,7 @@ public:
@@ -192,7 +192,7 @@ public:
@@ -257,7 +257,7 @@ public:
const bgfx::Caps* caps = bgfx::getCaps();
const bool computeSupported = !!(caps->supported & BGFX_CAPS_COMPUTE);
@@ -446,7 +446,7 @@ public:
@@ -171,7 +171,7 @@ public:
@@ -282,7 +282,7 @@ public:
@@ -402,7 +402,7 @@ public:
@@ -483,7 +483,7 @@ public:
@@ -405,7 +405,7 @@ public:
@@ -522,7 +522,7 @@ public:
@@ -108,7 +108,7 @@ public:
@@ -290,7 +290,7 @@ public:
@@ -365,7 +365,7 @@ public:
@@ -389,7 +389,7 @@ public:
m_currFrame = bgfx::frame();
@@ -589,7 +589,7 @@ public:
@@ -616,7 +616,7 @@ public:
ImVec2(m_width - m_width / 4.0f - 10.0f, 10.0f)
@@ -434,7 +434,7 @@ public:
@@ -261,7 +261,7 @@ public:
@@ -356,7 +356,7 @@ public:
@@ -8,10 +8,8 @@
#include "entry/cmd.h"
#include <bx/string.h>
-bool showExampleDialog(entry::AppI* _app)
+void showExampleDialog(entry::AppI* _app)
{
- bool restart = false;
-
char temp[1024];
bx::snprintf(temp, BX_COUNTOF(temp), "Example: %s", _app->getName() );
@@ -102,6 +100,4 @@ bool showExampleDialog(entry::AppI* _app)
ImGui::End();
- return restart;
@@ -55,7 +55,7 @@ void imguiBeginFrame(int32_t _mx, int32_t _my, uint8_t _button, int32_t _scroll,
void imguiEndFrame();
namespace entry { class AppI; }
-bool showExampleDialog(entry::AppI* _app);
+void showExampleDialog(entry::AppI* _app);
namespace ImGui