|
|
|
|
@ -51,7 +51,6 @@ renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug,
|
|
|
|
|
{ |
|
|
|
|
ImGui_ImplSdlGL3_NewFrame(handles.window); |
|
|
|
|
|
|
|
|
|
#if 1 |
|
|
|
|
ImGuiWindowFlags window_flags = 0; |
|
|
|
|
window_flags |= ImGuiWindowFlags_NoTitleBar; |
|
|
|
|
window_flags |= ImGuiWindowFlags_NoScrollbar; |
|
|
|
|
@ -60,11 +59,10 @@ renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug,
|
|
|
|
|
window_flags |= ImGuiWindowFlags_NoCollapse; |
|
|
|
|
|
|
|
|
|
ImGui::SetNextWindowPos(ImVec2(0,0)); |
|
|
|
|
ImGui::SetNextWindowSize(ImVec2(300, 250)); |
|
|
|
|
ImGui::SetNextWindowSize(ImVec2(300, 550)); |
|
|
|
|
ImGui::SetNextWindowBgAlpha(0.3f); |
|
|
|
|
bool show_window; |
|
|
|
|
ImGui::Begin("", &show_window, window_flags); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
ImGuiIO& io = ImGui::GetIO(); |
|
|
|
|
ImGui::Text("%.3f ms/frame, (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); |
|
|
|
|
@ -84,6 +82,11 @@ renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug,
|
|
|
|
|
ImGui::Text("is_selecting"); |
|
|
|
|
ImGui::SameLine(); ImGui::TextUnformatted(is_selecting ? "true" : "false"); |
|
|
|
|
|
|
|
|
|
// testing SDL_image
|
|
|
|
|
SDL_Surface* image = handles.texSurfaces[0]; |
|
|
|
|
ImGui::Image((void*)(intptr_t) image->userdata, ImVec2(image->w, image->h)); |
|
|
|
|
//ImGui::ShowMetricsWindow();
|
|
|
|
|
|
|
|
|
|
if (current_hex) |
|
|
|
|
{ |
|
|
|
|
Hex ch = current_hex->hex; |
|
|
|
|
@ -96,10 +99,8 @@ renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug,
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ImGui::End(); |
|
|
|
|
|
|
|
|
|
ImGui::Render(); |
|
|
|
|
ImGui_ImplSdlGL3_RenderDrawData(ImGui::GetDrawData()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif // GOOEY_H
|
|
|
|
|
|