On Feb 16, 12:57 pm, quakeboy <[email protected]> wrote:
> but still my speed drops when I draw the background as a textured
> quad. and I am not able to get the drawtexfOES to work.
>
> @Jon
> Can you please help me by posting a sample code of what parameters to
> pass to
>
> 1. glTexParameterfv
> 2. glDrawTexfOES
>
> to get them to paint the texture properly. I get a red color only, and
> not the actual texture. I use a 2d ortho with 320,480 as extents..
> with ortho camera's bottom left at 0,0

This is what I'm doing:

gl.glBindTexture(GL10.GL_TEXTURE_2D, name);
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, b, 0);
((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D,
    GL11Ext.GL_TEXTURE_CROP_RECT_OES,
    new int[] {0, 0, 320, 480}, 0);

((GL11Ext) gl).glDrawTexiOES(0, 0, 0, 320, 480);

Could the problem be not binding the texture before setting the
parameters?

--
Jon

--~--~---------~--~----~------------~-------~--~----~
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