16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 21:49:19 +02:00

vehicle params graphical representation

This commit is contained in:
milek7
2019-09-25 00:29:38 +02:00
parent 8bde68f209
commit 3c9111bb25
4 changed files with 90 additions and 3 deletions

View File

@@ -122,6 +122,11 @@ ui_layer::ui_layer()
m_logpanel.size = { 700, 400 };
}
void ui_layer::imgui_style()
{
ImGui::StyleColorsDark();
}
bool ui_layer::init(GLFWwindow *Window)
{
m_window = Window;
@@ -145,7 +150,7 @@ bool ui_layer::init(GLFWwindow *Window)
m_imguiio->Fonts->AddFontFromFileTTF("fonts/dejavusansmono.ttf", 13.0f, nullptr, &ranges[0]);
ImGui::StyleColorsDark();
imgui_style();
ImGui_ImplGlfw_InitForOpenGL(m_window);
#ifdef EU07_USEIMGUIIMPLOPENGL2
ImGui_ImplOpenGL2_Init();