The Galaxy live wallpaper is implemented with point sprites :) So yes,
they work and they are supported.

On Mon, Aug 9, 2010 at 2:37 PM, iconnary <[email protected]> wrote:
> I'm developing on a Droid, version 2.1update.  My supported GL
> extensions include GL_OES_point_sprite and GL_OES_point_size_array.
>
> I am unable to get point sprites to render.    The code below throws
> UnsupportedOperationException from GLWrapperBase at the glTexEnvi
> call.    If I disable textures and comment out the glTexEnvi all, it
> throws the same exception further down, at glPointSizePointerOES().
>
> Are point sprites properly supported in Android?   Has anyone gotten
> them working?    Or is there an issue with my code below?
>
> gl.glEnable(GL11.GL_TEXTURE_2D);
> gl.glEnable(GL11.GL_BLEND);
> gl.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
> gl.glDepthMask(false);
> gl.glEnable(GL11.GL_POINT_SPRITE_OES);
> gl.glTexEnvi( GL11.GL_POINT_SPRITE_OES, GL11.GL_COORD_REPLACE_OES,
> GL11.GL_TRUE );
> gl.glEnableClientState(GL11.GL_VERTEX_ARRAY);
> gl.glVertexPointer(2, GL11.GL_SHORT, 0, .vertBuffer);
> gl.glEnableClientState(GL11.GL_POINT_SIZE_ARRAY_OES);
> gl.glPointSizePointerOES(GL11.GL_FLOAT, 0, pointSizeBuffer);
>
>
>
>
>
> Thanks
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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