Package com.jme3.system.lwjgl
Interface WindowSizeListener
public interface WindowSizeListener
Listen to window size changes. Note, GLFW does not support registering multiple callbacks
in
GLFW.glfwSetWindowSizeCallback(long, org.lwjgl.glfw.GLFWWindowSizeCallbackI)
,
registering a new one will remove the previous one. Using this interface one can register
multiple listeners.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onWindowSizeChanged
(int width, int height) When registered byLwjglWindow.registerWindowSizeListener(WindowSizeListener)
, it gets invoked on each glfw window size callback to notify the listener about changes in the window size.
-
Method Details
-
onWindowSizeChanged
void onWindowSizeChanged(int width, int height) When registered byLwjglWindow.registerWindowSizeListener(WindowSizeListener)
, it gets invoked on each glfw window size callback to notify the listener about changes in the window size.- Parameters:
width
- the new window width.height
- the new window height.
-