From: Arno P. <ar...@pu...> - 2011-01-30 00:38:56
|
it seems the GL emulation is broken in XMLVM's Java emulator. I just tried the native (i.e., cross-compiled) version of NeHeLesson4 and that works perfectly fine. Note that while it is convenient to have a Java emulator, it is a lot of work to maintain. We rather focus on the cross-compilation and not mimicking iOS API on a desktop Java. Arno On 1/27/11 7:11 PM, Jeremiah Blanchard wrote: > Hi there, > > I've been trying to run the NeHeLesson4 OpenGL example but I keep > running into exceptions. From Eclipse or the command line, I get the > following output, exception, and stack trace: > > View: 320.0,480.0 > Exception in thread "Thread-6" java.lang.NullPointerException > at org.lwjgl.opengl.GL11.glViewport(GL11.java:3199) > at org.xmlvm.iphone.gl.GL.glViewport(GL.java:625) > at > org.xmlvm.iphone.demo.gl.nehelesson4.GLView.setupView(GLView.java:133) > at > org.xmlvm.iphone.demo.gl.nehelesson4.GLView.drawView(GLView.java:155) > at > org.xmlvm.iphone.demo.gl.nehelesson4.GLView$1.timerEvent(GLView.java:112) > at org.xmlvm.iphone.NSTimer.timerTick(NSTimer.java:81) > at org.xmlvm.iphone.NSTimer.access$1(NSTimer.java:80) > at org.xmlvm.iphone.NSTimer$1.run(NSTimer.java:52) > > Now, I did fix what appeared to be an error that prevented "setupView" > from being called, but even without it, I get very similar results: > > View: 320.0,480.0 > Exception in thread "Thread-6" java.lang.NullPointerException > at org.lwjgl.opengl.GL11.glClear(GL11.java:586) > at org.xmlvm.iphone.gl.GL.glClear(GL.java:594) > at > org.xmlvm.iphone.demo.gl.nehelesson4.GLView.drawView(GLView.java:161) > at > org.xmlvm.iphone.demo.gl.nehelesson4.GLView$1.timerEvent(GLView.java:112) > at org.xmlvm.iphone.NSTimer.timerTick(NSTimer.java:81) > at org.xmlvm.iphone.NSTimer.access$1(NSTimer.java:80) > at org.xmlvm.iphone.NSTimer$1.run(NSTimer.java:52) > > I've tried tracking down the problem but I'm not having any luck. Anyone > know how I can get this working? I'm in the process of porting some of > my code over to the iPhone but this has become a roadblock for me. > > Thanks in advance! > > -Jeremiah > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |