Login  Register

Re: A problem with a tutorial

Posted by Justin on Oct 27, 2010; 5:33am
URL: https://forum.jogamp.org/A-problem-with-a-tutorial-tp1777294p1778385.html

Hi,

Strange. I'll have to update the tutorial if this is true. I did test this on a couple different machines with different operating systems (Mac, Windows, Linux) and GPUs. Maybe something has changed in the JOGL releases; I'm not really sure.

Why did it work for me? The reshape method should trigger a call to the display method last time I checked. At least on my machine, reshape is actually called while the window / frame and its decorations are set up (without user interaction). If you resize the window that pops up, does it show a triangle then?

To show this, put a System.out.println("reshape called"); inside the reshape method, and another similar print statement in the display method. You should see something like this:

Reshape called
Display called

or maybe even

Reshape called
Display called
Display called

Justin