【问题标题】:Creating a JOGL texture from a BufferedImage从 BufferedImage 创建 JOGL 纹理
【发布时间】:2010-06-23 17:21:36
【问题描述】:

在以前版本的 JOGL 中,我可以使用以下方便的函数从 BufferedImage 创建纹理:

public static Texture makeTextureFromBufferedImage(BufferedImage b) {
    return TextureIO.newTexture(b,true);
}

然而,在最新的 JOGL 版本中,TextureIO.newTexture 方法似乎不再接受 BufferedImage。

那么现在推荐的从 BufferedImage 创建纹理的方法是什么?

【问题讨论】:

    标签: java 3d textures jogl


    【解决方案1】:

    为了简短起见:改用 AWTTextureIO。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多