Advertisement
SrinjoySS01

Main.class

Dec 3rd, 2020
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. public class Main {
  2.     static GLFW glfw = GLFW.INSTANCE;
  3.  
  4.     public static void main(String[] args) {
  5.         if (glfw.glfwInit() == 0) {
  6.             System.out.println("Error");
  7.             glfw.glfwTerminate();
  8.         }
  9.         long window = glfw.glfwCreateWindow(640, 480, "Minecraft", 0, 0);
  10.         glfw.glfwMakeContextCurrent(window);
  11.         while (glfw.glfwWindowShouldClose(window) != 0){
  12.             /* Swap front and back buffers */
  13.             glfw.glfwSwapBuffers(window);
  14.  
  15.             /* Poll for and process events */
  16.             glfw.glfwPollEvents();
  17.         }
  18.         glfw.glfwTerminate();
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement