[程式] 請問 OpenGL 如何讀取 texture 的raw data
我使用 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
→
07/09 17:16, , 1F
07/09 17:16, 1F
GameDesign 近期熱門文章
PTT遊戲區 即時熱門文章
14
29
8
14
18
38