问题
I must be stupid or something, but I'm looking at several JOGL samples online and they use the color3f method of the GL interface in JOGL, but the compiler complains it can't find the method and when I'm checking the javadoc I indeed can't find it: http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GL.html
So how come there's several samples of code I can find on google that uses GL.glColor3f, but I can't find the method in javadoc? Am I missing something?
回答1:
Use an implementation specific subclass, eg GL2: http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GL2.html
来源:https://stackoverflow.com/questions/7973538/cant-find-gl-glcolor3f-in-jogl