【问题标题】:How to bind a PImage to a texture in Processing using jogl (straight OpenGL)如何使用 jogl(直接 OpenGL)将 PImage 绑定到处理中的纹理
【发布时间】:2009-02-17 05:15:40
【问题描述】:

如果您在处理中将图像加载到 PImage 中,使用 OpenGL 调用将其绑定到纹理的最佳方法是什么?我没有使用任何处理渲染的东西。

【问题讨论】:

    标签: opengl processing jogl


    【解决方案1】:

    我猜你应该可以绑定BufferedImage

    如果是这样,您可以使用 PImage 的getNative() 方法访问BufferedImage

    BufferedImage bufferedImage = (BufferedImage) loadedPImage.getNative();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-13
      • 2013-09-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-22
      相关资源
      最近更新 更多