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  
  RFE: invokeLater-style method access  (Read 743 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Full Member
**

Posts: 236


Java will rule them all!


« on: 2003-08-30 10:09:27 »

Is it planned to add a functionality to JOGL that acts similar to SwingUtitilities.invokeLater()  and .invokeAndWait()?

The problem I encountered was the following: While happily hacking my application using BeanShell I was interested what the maximum texture size my graphics driver supports is. The call to gl.glGetIntegerv(...) failed with an exception in native code (Win XP, GeForce256). I know that this behaviour is caused due to the threading model JOGL uses.

I had a similar problem when changing the polygon mode as a reaction to a keypress. Changing the state value from the AWT thread caused nothing. The only solution was to introduce a variable that saves the current polygon mode and set it every time the display-method gets called. The value of the variable was controlled by the keypress handler.

I wonder if the API expects me to implement the invokeLater-feature to reach greater flexibility?

Maybe there is a better solution to the things I mentioned. If so, please tell me.

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
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.082 seconds with 21 queries.