在JOGL中找不到GL.glColor3f? [英] Can't find GL.glColor3f in JOGL?

查看:77
本文介绍了在JOGL中找不到GL.glColor3f?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一定很蠢,但是我正在网上看几个JOGL示例,它们在JOGL中使用GL接口的color3f方法,但是编译器抱怨找不到方法,当我检查时我确实找不到javadoc: http://jogamp.org/deployment /jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GL.html

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

那么在Google上可以找到使用GL.glColor3f的几个代码示例,但是我在javadoc中找不到该方法?我想念什么吗?

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?

推荐答案

使用特定于实现的子类,例如GL2:

Use an implementation specific subclass, eg GL2: http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GL2.html

这篇关于在JOGL中找不到GL.glColor3f?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆