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  
  syncing animations using multiple jogl windows  (Read 758 times)
0 Members and 1 Guest are viewing this topic.
Offline sss

JGO n00b
*

Posts: 12


Java games rock!


« on: 2003-09-03 12:02:16 »

My application uses mutiple GLCanvas's that I would like to animate.  Is there an easy way to syncronize the animations so that every GLCanvas renders itself before my frame counter advances?

many thanks
Offline wiederke

Jr. Member
**

Posts: 76


Thx to James Gosling.


« Reply #1 on: 2003-09-04 04:46:44 »

Hi,

use only one data souce, which is uses by all GLCanvases, then you don't have a synchronization problem.


ciao torsten
Offline sss

JGO n00b
*

Posts: 12


Java games rock!


« Reply #2 on: 2003-09-04 14:33:43 »

Could someone provide a little more detail?  I would like to animate multiple jogl GLCanvas windows that are to remain in sync.  My code advances to the next frame and calls GLCanvas.repaint() for each window.  

Is there a way to pause until after the repaints complete?
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.117 seconds with 21 queries.