我更新了opengl版本。awtPixelAttributesIntRGB3无法解析或不是字段
但我得到了一个错误:
AWTGLPixelBuffer pixelBuffer = pixelBufferProvider.allocate(gl,
AWTGLPixelBuffer.awtPixelAttributesIntRGB3,
v.getWidth(),
v.getHeight(),
1,
true,
0);
我的图书馆找不到awtPixelAttributesIntRGB3
。如果我使用旧版本,它可以找到。
我导入相同的库:import com.jogamp.opengl.util.awt.AWTGLPixelBuffer;
最后一件事,我下载的OpenGL的最后一个版本在这里(jogamp-全platforms.7z): http://jogamp.org/deployment/jogamp-current/archive/
,我只加jogamp-所有。罐子到我的lib文件夹。
感谢您的建议。