Added (DEBUG) In Window title and Perf. Stats
This commit is contained in:
parent
71659be98e
commit
2095152251
@ -112,7 +112,12 @@ void PerformanceWindow::Show(float fps, float ms)
|
|||||||
ImGui::Begin("Performance##performance");
|
ImGui::Begin("Performance##performance");
|
||||||
|
|
||||||
// A color-coded main header
|
// A color-coded main header
|
||||||
|
#ifdef DEBUG
|
||||||
|
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.2f, 1.0f), "Performance Stats (DEBUG)");
|
||||||
|
#else
|
||||||
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.2f, 1.0f), "Performance Stats");
|
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.2f, 1.0f), "Performance Stats");
|
||||||
|
#endif
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
|
||||||
|
@ -12,9 +12,14 @@ int main()
|
|||||||
// Small error where the constuctor would crash
|
// Small error where the constuctor would crash
|
||||||
MyEngine engine;
|
MyEngine engine;
|
||||||
DEBUG_PRINT("[OK] Creating Global Engine ");
|
DEBUG_PRINT("[OK] Creating Global Engine ");
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
std::string title = "Tesseract Engine (DEBUG)";
|
||||||
|
#else
|
||||||
|
std::string title = "Tesseract Engine";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (!engine.Init(1280, 720, title))
|
||||||
if (!engine.Init(1280, 720, "Tesseract Engine"))
|
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to initialize engine.\n");
|
fprintf(stderr, "Failed to initialize engine.\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user