I've finally got around to mipmapping a bunch of my textures and
decided to make a fail-safe for GL10/GL11.  My code manually generates
mipmaps if the GL instance is only GL10, but if it's GL11, it sets
gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP,
GL11.GL_TRUE);

The next line I use is:

GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);

but I only get white textures.  Isn't that all I need to do for the
generate mipmaps call?  Also, if a GL is an instance of GL11, doesn't
that mean that it should fully support OpenGL ES 1.1?

I've written everything for OGLES 1.0, but I'm just getting confused
because the GL context I get on my G1 is an instance of GL11, yet this
doesn't appear to work correctly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to