From 678464d24c9c5b689788c0ec17854611f127f863 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 20:47:33 -0500 Subject: Compile against release. --- src/demo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/demo.cpp') 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 #include +#include + 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")) -- cgit v1.2.3