Hi all I'm doing a little 3D app programming based on SDK 1.5. I can't change textures in any way with glDeleteTextures. Please help to check if I did sth. wrong. My subfunction is as below:
public void doSomething() { mGL.glBindTexture(GL10.GL_TEXTURE_2D, 0); mGL.glDeleteTextures(1, textures, 0); mGL.glGenTextures(1, textures, 0); mGL.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); InputStream is = mContext.getResources() .openRawResource(R.drawable.robot); Bitmap bitmap; try { bitmap = BitmapFactory.decodeStream(is); } finally { try { is.close(); } catch(IOException e) { // Ignore. } } GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); bitmap.recycle(); } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en