Examples: SDL+GL3: Added Navigation keyboard mapping. (#787)

This commit is contained in:
omar
2018-02-05 23:16:40 +01:00
parent 7e1496e994
commit 4b49f03a40
3 changed files with 27 additions and 1 deletions

View File

@ -34,7 +34,9 @@ int main(int, char**)
gl3wInit();
// Setup ImGui binding
ImGuiIO& io = ImGui::GetIO(); (void)io;
ImGui_ImplSdlGL3_Init(window);
//io.NavFlags |= ImGuiNavFlags_EnableKeyboard;
// Setup style
ImGui::StyleColorsDark();
@ -47,7 +49,6 @@ int main(int, char**)
// - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call.
// - Read 'misc/fonts/README.txt' for more instructions and details.
// - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ !
//ImGuiIO& io = ImGui::GetIO();
//io.Fonts->AddFontDefault();
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f);
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f);