[問題] android 關於 opengl es Frame Buffer …
我目前在寫android 的程式,需要使用frame buffer,我加了下面的codes 就會當機。
請教一下高手,這是什麼樣子的問題?如果有需要,我也可以提供完整的程式碼
public void onSurfaceChanged(GL10 gl, int width, int height) {
/*......省.......*/
GL11ExtensionPack gl11ep = (GL11ExtensionPack) gl;
int textureID=0;
int[] framebuffers = new int[10];
gl11ep.glGenFramebuffersOES(1, framebuffers, 0);
/*......省.......*/
glGenFramebuffersOES() 會有UnsupportedOperationException
但是 glGenFramebuffersOES()Since: API Level 1
請高手幫幫忙。
另外補充一下,我有用 instanceof 確認過 gl 是不是 GL11ExtensionPack
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.20.135.146
※ 編輯: puper 來自: 61.20.135.146 (07/14 15:45)
→
07/15 01:14, , 1F
07/15 01:14, 1F
→
07/15 08:49, , 2F
07/15 08:49, 2F
→
07/15 10:19, , 3F
07/15 10:19, 3F
→
07/15 10:23, , 4F
07/15 10:23, 4F
→
07/15 10:48, , 5F
07/15 10:48, 5F
→
07/15 11:08, , 6F
07/15 11:08, 6F
→
07/15 12:00, , 7F
07/15 12:00, 7F