Advertisement
GenuineSounds

Untitled

Mar 26th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. Functional Interfaces turn this:
  2. glfwSetFramebufferSizeCallback(window, (framebufferSizeCallback = new GLFWFramebufferSizeCallback() {
  3.  
  4.     @Override
  5.     public void invoke(long window, int width, int height) {
  6.         onResize(width, height);
  7.     }
  8. }));
  9.  
  10. Into this:
  11. glfwSetFramebufferSizeCallback(window, (framebufferSizeCallback = GLFWFramebufferSizeCallback.create(this::onResize)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement