2015-04-01 89 views
1

我有一個BufferedImage,但我需要將它製作成一個ByteBuffer,這樣我就可以將它應用到CubeMap表面。如何將BufferedImage放入ByteBuffer?

+0

我不知道的BufferedImage的一部分,但這裏是一個教程,以字節緩衝區加載到立方體貼圖:http://www.java -tips.org/other-api-tips/jogl/how-to-use-cube-map-textures.html – Jerem 2015-04-02 07:15:46

+0

請看看Harald對這個問題的回答:http://stackoverflow.com/questions/29301838/轉換-的BufferedImage到字節緩衝區 – 2015-07-21 23:09:15

回答

相關問題