Last active
August 29, 2015 14:14
-
-
Save sugiartocokrowibowo/3ba38322dd3d86d1523a to your computer and use it in GitHub Desktop.
Source code tutorial Java-OpenGL menggunakan library LWJGL Oleh Sugiarto Cokrowibowo (http://computergraphicsindonesia.blogspot.com/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.lwjgl.LWJGLException; | |
import org.lwjgl.opengl.Display; | |
import org.lwjgl.opengl.GL11; | |
public class LihatVersiOpenGL { | |
public void initGl() | |
{ | |
try { | |
Display.create(); | |
System.out.println("OpenGL version: " + GL11.glGetString(GL11.GL_VERSION)); | |
System.out.println("OpenGL renderer: " + GL11.glGetString(GL11.GL_RENDERER)); | |
System.out.println("OpenGL vendor: " + GL11.glGetString(GL11.GL_VENDOR)); | |
} | |
catch (LWJGLException e) { | |
System.out.println("error"); | |
e.printStackTrace(); | |
System.exit(-1); | |
} | |
} | |
public static void main(String[] args) { | |
LihatVersiOpenGL tv= new LihatVersiOpenGL(); | |
tv.initGl(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment