在以前版本的 JOGL 中,我可以使用以下方便的函数从 BufferedImage 创建纹理:
public static Texture makeTextureFromBufferedImage(BufferedImage b) {
return TextureIO.newTexture(b,true);
}
现在,在最新的 JOGL 版本中,TextureIO.newTexture 方法似乎不再接受 BufferedImage。
那么现在从 BufferedImage 创建纹理的推荐方法是什么?
最佳答案
简单来说:使用 AWTTextureIO 代替。
关于java - 从 BufferedImage 创建 JOGL 纹理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3103942/