‘Day 2 with NetBeans’
So yesterday I created myself a JOGL2 Library for use with netbeans consisting of all the mac osx universal jars (from overnight build). I have a new NB project for Java Application and ‘add’ this new library. Next I set up the java.library.path to point to the native libs. All good so far.
Tested the ES2 demo of RedSquare and pleased to say it works fine
Then I tried the ES1 RedSquare demo and hit the following exception:
java.lang.RuntimeException: Unexpected buffer type java.nio.DirectDoubleBufferU
at com.sun.gluegen.runtime.BufferFactory.isDirect(BufferFactory.java:98)
at com.sun.opengl.impl.gl2.GL2Impl.glMultMatrixd(GL2Impl.java:9915)
at com.sun.opengl.impl.gl2.ProjectDouble.gluPerspective(ProjectDouble.java:567)
at javax.media.opengl.glu.gl2.GLUgl2.gluPerspective(GLUgl2.java:321)
at RedSquare.reshape(RedSquare.java:205)
at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:101)
at com.sun.javafx.newt.opengl.GLWindow$DisplayAction.run(GLWindow.java:586)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:156)
at com.sun.javafx.newt.opengl.GLWindow.display(GLWindow.java:528)
at RedSquare.display(RedSquare.java:135)
at RedSquare.run(RedSquare.java:120)
at RedSquare.main(RedSquare.java:276)
Any ideas what I might have done wrong with my setup?