看板 GameDesign 關於我們 聯絡資訊
我使用 glCopyTexSubImage2D() 將color buffer存入texture 中。 請問一下,有什麼方式可以讀取 texture 的raw data嗎? 以下為我程式的片斷 ///////////////////////////////////////////////// int mViewTextures[]; mViewTextures = new int[1]; gl.glGenTextures(1, mViewTextures, 0); gl.glBindTexture(GL11.GL_TEXTURE_2D, mViewTextures[0]); gl.glCopyTexSubImage2D(GL11.GL_TEXTURE_2D, 0, 0, 0, 0, 0, mViewWidth, mViewHeight); //這時要讀取texture的raw data 就不知道要如何做了! -- 真相在此 http://puperchang.myec.tw/wordpress/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.231.65.185
puper:glGetTexImage 終於找到了,但是又有其他問題,寫在下篇 07/09 17:16