Add shortcut methods to add/remove config/backend flags
This commit is contained in:
1 parent
258b9feeb6
commit
92a9d43876
3 files changed
+29
-2
No files matched your search
@@ -193,7 +193,7 @@ public class ImGuiImplGlfw {
|
||||
|
||||
final ImGuiIO io = ImGui.getIO();
|
||||
|
||||
io.setBackendFlags(ImGuiBackendFlags.HasMouseCursors | ImGuiBackendFlags.HasSetMousePos);
|
||||
io.addBackendFlags(ImGuiBackendFlags.HasMouseCursors | ImGuiBackendFlags.HasSetMousePos);
|
||||
io.setBackendPlatformName("imgui_java_impl_glfw");
|
||||
|
||||
// Keyboard mapping. ImGui will use those indices to peek into the io.KeysDown[] array.
|
||||
|
||||
@@ -167,7 +167,7 @@ public final class ImGuiGlfwExample {
|
||||
final ImGuiIO io = ImGui.getIO();
|
||||
|
||||
io.setIniFilename(null); // We don't want to save .ini file
|
||||
io.setConfigFlags(ImGuiConfigFlags.NavEnableKeyboard | ImGuiConfigFlags.DockingEnable); // Navigation with keyboard and enabled docking
|
||||
io.addConfigFlags(ImGuiConfigFlags.NavEnableKeyboard | ImGuiConfigFlags.DockingEnable); // Navigation with keyboard and enabled docking
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// Fonts configuration
|
||||
|
||||
Reference in new issue
Block a user