Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  A novice question  (Read 557 times)
0 Members and 1 Guest are viewing this topic.
Offline twosuns

JGO n00b
*

Posts: 1


Java games rock!


« on: 2004-09-14 00:00:34 »

Using gleem.linalg.*, the following transformation function call between glBegin and glEnd throws exception. It seems to invoke GL.  What is going on here?

Thanks
Twosuns



Exception in thread "AWT-EventQueue-0" net.java.games.jogl.GLException: Error freeing OpenGL context: 0
     at net.java.games.jogl.impl.windows.WindowsGLContext.free(WindowsGLContext.java:169)
     at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.free(WindowsOnscreenGLContext.java:132)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:319)
     at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
     at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
     at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:82)
     at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
     at sun.awt.RepaintArea.paint(RepaintArea.java:224)
     at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
     at java.awt.Component.dispatchEventImpl(Component.java:4031)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)







Matf transformw;
Vec3f transformedVertex;
.
.
.
gl.glBegin(GL.GL_TRIANGLE_STRIP);
transformedVertex = transformw.mul(objectVertex.toVecf()).toVec3f();
gl.glEng();
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.211 seconds with 21 queries.