Class GLFWUIUtil
java.lang.Object
dev.pfaff.altargui.glfw.GLFWUIUtil
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWUIUtil
(dev.pfaff.glass.glfw.GLFWwindow window, DelayedInitGuiContext gui) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contentScaleChanged
(float x, float y) void
framebufferSizeChanged
(int width, int height) float
The scale factor necessary to convert screen coordinates (i.e.void
windowSizeChanged
(int width, int height)
-
Constructor Details
-
GLFWUIUtil
-
-
Method Details
-
framebufferSizeChanged
public void framebufferSizeChanged(int width, int height) -
contentScaleChanged
public void contentScaleChanged(float x, float y) -
windowSizeChanged
public void windowSizeChanged(int width, int height) -
screenCoordinatesToVirtualPixelsScaleFactor
public float screenCoordinatesToVirtualPixelsScaleFactor()The scale factor necessary to convert screen coordinates (i.e. mouse position from GLFW callback) to "virtual pixels" used by Altar GUI.
-