Opengl在旧版本和新版本之间进行转换

时间:2013-12-13 21:41:23

标签: java opengl lwjgl

Hy,我将LWGLJ 2.03更改为2.83并且有问题我为何会收到此错误:

GLApp.run(): java.lang.IllegalArgumentException: FloatBuffer is not direct
java.lang.IllegalArgumentException: FloatBuffer is not direct
    at org.lwjgl.BufferChecks.checkDirect(BufferChecks.java:139)
    at org.lwjgl.BufferChecks.checkBuffer(BufferChecks.java:259)
    at org.lwjgl.opengl.GL11.glMultMatrix(GL11.java:2308)
    at glmodel.CarModel.drawWheel(CarModel.java:131)
    at physics.Physics.render(Physics.java:649)
    at awesomejeep.AwesomeJeep.drawObjects(AwesomeJeep.java:352)
    at awesomejeep.AwesomeJeep.render(AwesomeJeep.java:271)
    at glapp.GLApp.draw(GLApp.java:554)
    at glapp.GLApp.run(GLApp.java:166)
    at awesomejeep.AwesomeJeep.main(AwesomeJeep.java:84)

I get error in this line:
GL11.glMultMatrix(FloatBuffer.wrap(glMat));    

我真的不知道什么是错的

0 个答案:

没有答案