Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GLFW.glfwDefaultWindowHints();
- GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GL_TRUE);
- GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GL_TRUE);
- long id = GLFW.glfwCreateWindow(width, height, title, 0, 0);
- if(id == 0) throw new RuntimeException("Failed to create window");
- GLFW.glfwMakeContextCurrent(id);
- GLContext.createFromCurrent();
- GLFW.glfwSwapInterval(1);
- GLFW.glfwShowWindow(id);
- created = true;
- GL11.glLoadIdentity();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement