I guess it’s not a scoop for most of the people here…
Anyway, I just found out that when running accelerated OpenGL on the Galaxy, glTexParameterx(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP, GL11.GL_TRUE)
will simply not work (black textures…)
Same situation for older hardware like the G1…
It seems that the official workaround is to use GLUtils.texImage2D(…)
I’m planning to test it with RGB, RBG+ALPHA and GRAYSCALE textures.
The thing is that the image data must be passed as a Bitmap. Not a big issue when loading images, but sometimes you need to use your own byte-based data (and then: having to pass through bitmap conversion can be overkill…)
Something in the lines GLU.gluBuild2DMipmaps(…) could be helpful.
What are you guys using?