Package foundry.veil.impl.client.imgui
Class VeilImGuiImpl
java.lang.Object
foundry.veil.impl.client.imgui.VeilImGuiImpl
- All Implemented Interfaces:
VeilImGui
,AutoCloseable
,org.lwjgl.system.NativeResource
@Internal
public class VeilImGuiImpl
extends Object
implements VeilImGui, org.lwjgl.system.NativeResource
Manages the internal ImGui state.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addImguiShaders
(ObjIntConsumer<net.minecraft.resources.ResourceLocation> registry) void
begin()
void
boolean
charCallback
(long window, int codepoint) void
end()
void
endFrame()
void
free()
static VeilImGui
get()
static void
init
(long window) boolean
keyCallback
(long window, int key, int scancode, int action, int mods) boolean
mouseButtonCallback
(long window, int button, int action, int mods) void
boolean
scrollCallback
(long window, double xOffset, double yOffset) static void
boolean
void
toggle()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Method Details
-
begin
public void begin() -
beginFrame
public void beginFrame()- Specified by:
beginFrame
in interfaceVeilImGui
-
endFrame
public void endFrame() -
end
public void end() -
onGrabMouse
public void onGrabMouse()- Specified by:
onGrabMouse
in interfaceVeilImGui
-
toggle
public void toggle() -
updateFonts
public void updateFonts()- Specified by:
updateFonts
in interfaceVeilImGui
-
addImguiShaders
- Specified by:
addImguiShaders
in interfaceVeilImGui
-
mouseButtonCallback
public boolean mouseButtonCallback(long window, int button, int action, int mods) - Specified by:
mouseButtonCallback
in interfaceVeilImGui
-
scrollCallback
public boolean scrollCallback(long window, double xOffset, double yOffset) - Specified by:
scrollCallback
in interfaceVeilImGui
-
keyCallback
public boolean keyCallback(long window, int key, int scancode, int action, int mods) - Specified by:
keyCallback
in interfaceVeilImGui
-
charCallback
public boolean charCallback(long window, int codepoint) - Specified by:
charCallback
in interfaceVeilImGui
-
shouldHideMouse
public boolean shouldHideMouse()- Specified by:
shouldHideMouse
in interfaceVeilImGui
-
free
public void free()- Specified by:
free
in interfaceorg.lwjgl.system.NativeResource
-
init
public static void init(long window) -
setImGuiPath
public static void setImGuiPath() -
get
-