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 Details

    • onWindowSizeChanged

      void onWindowSizeChanged(int width, int height)
      When registered by LwjglWindow.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.