|
|
|
@ -42,7 +42,7 @@ gooeyProcessEvent(SDL_Event &event) |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|
renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug, |
|
|
|
renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug, |
|
|
|
hex_info* start_hex, hex_info* current_hex, bool &is_selecting) |
|
|
|
hex_info* start_hex, hex_info* current_hex, bool &is_selecting, v3f camera_pos) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ImGui_ImplSdlGL3_NewFrame(handles.window); |
|
|
|
ImGui_ImplSdlGL3_NewFrame(handles.window); |
|
|
|
|
|
|
|
|
|
|
|
@ -77,9 +77,17 @@ renderGooey(SDL_Handles &handles, HexDrawMode &mode, bool &is_debug, |
|
|
|
ImGui::Text("is_selecting"); |
|
|
|
ImGui::Text("is_selecting"); |
|
|
|
ImGui::SameLine(); ImGui::TextUnformatted(is_selecting ? "true" : "false"); |
|
|
|
ImGui::SameLine(); ImGui::TextUnformatted(is_selecting ? "true" : "false"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ImGui::CollapsingHeader("Camera Position")) { |
|
|
|
|
|
|
|
ImGui::Text("x: %f", camera_pos.x); |
|
|
|
|
|
|
|
ImGui::Text("x: %f", camera_pos.y); |
|
|
|
|
|
|
|
ImGui::Text("x: %f", camera_pos.z); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
// testing SDL_image
|
|
|
|
// testing SDL_image
|
|
|
|
SDL_Surface* image = handles.texSurfaces[0]; |
|
|
|
SDL_Surface* image = handles.texSurfaces[0]; |
|
|
|
ImGui::Image((void*)(intptr_t) image->userdata, ImVec2(image->w, image->h)); |
|
|
|
ImGui::Image((void*)(intptr_t) image->userdata, ImVec2(image->w, image->h)); |
|
|
|
|
|
|
|
#endif |
|
|
|
//ImGui::ShowMetricsWindow();
|
|
|
|
//ImGui::ShowMetricsWindow();
|
|
|
|
|
|
|
|
|
|
|
|
if (current_hex) |
|
|
|
if (current_hex) |
|
|
|
|