OpenGL ES problem: Trouble loading a bitmap texture (comes out blue)

by Jon Colverson » Thu, 05 Mar 2009 03:34:30 GMT


Sponsored Links
 I don't understand why you're trying to copy the texture from a Bitmap
into an IntBuffer before setting it. Why not use GLUtils.texImage2D to
load the Bitmap directly?

--
Jon

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

Hi Todd,

Its not clear to me what you are trying to do, I read twice through your
post, but I couldn't figure it out.

Thanks,
Megha





--~--~---------~--~----~------------~-------~--~----~

2. How to get a GL11Ext instance to call OpenGL Extension functions?

Hi Android Graphics Team,
I would like to call OpenGL extension function:
void glDrawTexiOES(int x, int y, int z, int width, int height)

to render a 2D image directly in 3D scene without bothering to use
OpenGL quad.

The question is, how can I get a GL11Ext instance? I could not find
any function to do this.
Does this means I can simply cast the instance returned by
OpenGLContext.getGL() into a GL11Ext?

Thanks,
Hongkun
www.omnigsoft.com

--~--~---------~--~----~------------~-------~--~----~

3. Please review my short code !

4. Android app communicating with the "outside"

5. Maven Android Plugins: Masa 1.0 Released

6. stand-alone notepad content provider insert error

7. Android source isn't available ?????????