作者puper (Oh Yes)
看板GameDesign
标题[程式] 请问 OpenGL 如何读取 texture 的raw data
时间Thu Jul 8 10:21:02 2010
我使用 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
1F:→ puper:glGetTexImage 终於找到了,但是又有其他问题,写在下篇 07/09 17:16