added more colormaps

This commit is contained in:
Lauchmelder 2021-12-26 07:00:15 +01:00
parent cf192262f2
commit 16d95b85eb
7 changed files with 839 additions and 21 deletions

View file

@ -9,6 +9,7 @@
#include "imgui.h"
#include "backends/imgui_impl_glfw.h"
#include "backends/imgui_impl_opengl3.h"
#include "Colormaps.hpp"
#ifdef NDEBUG
#define FULLSCREEN
@ -208,6 +209,9 @@ void Application::Launch()
ImGui::Checkbox("Heightmap", &enableHeightMap);
ImGui::Checkbox("Colormap", &enableColorMap);
ImGui::Checkbox("Scrolling", &enableScroll);
ImGui::ListBox("Colormap", &colormap, colormapNames.data(), colormapNames.size());
topology->SetColormap(colormaps[colormap]);
}
ImGui::End();