Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. GLFW.glfwDefaultWindowHints();
  2. GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GL_TRUE);
  3. GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GL_TRUE);     
  4.  
  5. long id = GLFW.glfwCreateWindow(width, height, title, 0, 0);
  6. if(id == 0) throw new RuntimeException("Failed to create window");
  7.        
  8. GLFW.glfwMakeContextCurrent(id);
  9. GLContext.createFromCurrent();
  10.        
  11. GLFW.glfwSwapInterval(1);
  12. GLFW.glfwShowWindow(id);
  13. created = true;
  14.        
  15. GL11.glLoadIdentity();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement