问题描述
我正在LWJGL中的一个项目上工作,并且OpenGL设置可以在2.0上运行,但是每当我尝试在LWJGL 3.0上进行渲染时,它都会返回Function is not supported
.
I am working on a project in LWJGL, and the OpenGL setup works on 2.0, but whenever I try to render on LWJGL 3.0, it returns Function is not supported
.
返回此错误的方法:
-
glColor3f();
-
glVertex3f();
-
glColorPointer();
-
glVertexPointer();
-
glBegin();
-
glEnd();
glColor3f();
glVertex3f();
glColorPointer();
glVertexPointer();
glBegin();
glEnd();
我们的项目设置很好,并且显示的窗口中没有这些方法,但是每当我们使用它们时,LWJGL都会吐出该错误.我们需要快速的帮助,因此,如果您知道为什么会发生这种情况,请告诉我.
Our project setup is fine, and the window shows without these methods, but whenever we use them, LWJGL spits out that error. We need help and quick, so if you know why this is happening, please tell me.
推荐答案
据此:为什么要使用新版本这些版本(我的意思是2.x和3.x)没有向后兼容性.在这些版本之间,API也进行了一些重大更改.因此,您不能只更改库.
According to this: Why a new version These version(I mean 2.x and 3.x) have not backward compatibillity. Also there is some major changes to API between these version. So you can not just change library.
这篇关于LWJGL不支持所有功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!