Can't find GL.glColor3f in JOGL?

末鹿安然 提交于 2020-01-04 04:30:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!