Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- static GLFW glfw = GLFW.INSTANCE;
- public static void main(String[] args) {
- if (glfw.glfwInit() == 0) {
- System.out.println("Error");
- glfw.glfwTerminate();
- }
- long window = glfw.glfwCreateWindow(640, 480, "Minecraft", 0, 0);
- glfw.glfwMakeContextCurrent(window);
- while (glfw.glfwWindowShouldClose(window) != 0){
- /* Swap front and back buffers */
- glfw.glfwSwapBuffers(window);
- /* Poll for and process events */
- glfw.glfwPollEvents();
- }
- glfw.glfwTerminate();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement