summaryrefslogtreecommitdiff
path: root/src/demo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo.cpp')
-rw-r--r--src/demo.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/demo.cpp b/src/demo.cpp
index 14bd8d5..ad6207a 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -17,8 +17,12 @@
#include <spdlog/spdlog.h>
#include <vector>
+#include <fud_assert.hpp>
+
namespace bookmouse {
+using fud::assertFail;
+
// Simple helper function to load an image into a OpenGL texture with common settings
bool LoadTextureFromMemory( // force newline
const void* data,
@@ -143,7 +147,7 @@ int demo(const fud::String& m_filename)
GLuint my_image_texture = 0;
bool ret = LoadTextureFromFile( // force
m_filename, &my_image_texture, &my_image_width, &my_image_height);
- IM_ASSERT(ret);
+ fudAssert(ret);
// Our state
bool show_demo_window = true;
@@ -213,7 +217,7 @@ int demo(const fud::String& m_filename)
// Edit 1 float using a slider from 0.0f to 1.0f
ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
// Edit 3 floats representing a color
- ImGui::ColorEdit3("clear color", (float*)&clear_color);
+ ImGui::ColorEdit3("clear color", &clear_color.x);
// Buttons return true when clicked (most widgets return true when edited/activated)
if (ImGui::Button("Button"))