painting?

hey guys :slight_smile:

I’m currently rewriting the display class of my game for jogl. Now, after getting the image and shape drawing to work I’d like to integrate the drawing into the game’s thread, ie, get rid of the animator object.

but, if I just call the display method, or the frame’s repaint method…

ok scratch that I just figured it out, it’s the GLCanvas’ repaint() which needs to be called, not the frame’s :stuck_out_tongue:

thought I’d post it anyways if anyone else is having this problem (had been searching >45 minutes for a solution on google ./.) :slight_smile:

Call GLCanvas.display(). That will cause rendering to occur immediately and will not return until it is complete, although currently if you call it from another thread it will delegate its work to the AWT event dispatch thread; this is an implementation detail that probably shouldn’t impact your application.

works equally nice, thanks :smiley: