当前位置: 软件>java软件
Java的OpenGL开发包 JOGL
本文导语: JOGL 是Java对于OpenGl的绑定(Java Bindings for OpenGL). 示例代码: import net.java.games.jogl.*; public class HelloWorld { public static void main (String args[]) { try { System.loadLibrary("jogl"); System.out.println( "Hello World! (The nati...
JOGL 是Java对于OpenGl的绑定(Java Bindings for OpenGL).
示例代码:
import net.java.games.jogl.*; public class HelloWorld { public static void main (String args[]) { try { System.loadLibrary("jogl"); System.out.println( "Hello World! (The native libraries are installed.)" ); GLCapabilities caps = new GLCapabilities(); System.out.println( "Hello JOGL! (The jar appears to be available.)" ); } catch (Exception e) { System.out.println(e); } } }