Re: Sample code used to work in JOGL 1. How do I make it work in JOG 2?
Posted by s3a on Dec 25, 2011; 9:40pm
URL: https://forum.jogamp.org/Sample-code-used-to-work-in-JOGL-1-How-do-I-make-it-work-in-JOG-2-tp3611162p3612029.html
This might sound weird but being told where the answer is helps me find the answer more easily when I look there (in this case Wikipedia).
Basically, I told Netbeans to implement all abstract methods and I changed the GL gl = drawable.getGL(); line to GL2 gl = drawable.getGL().getGL2(); and then it worked.
Thanks!