Point Sprite support

by Scott » Tue, 06 Oct 2009 10:37:41 GMT

Sponsored Links
 Can someone confirm for me that point sprites are not currently
supported in Android? Calling gl.glEnable(GL11.GL_POINT_SPRITE_OES) is
triggering a GL_INVALID_ENUM error, so I assume this is the case, but
I'd appreciate a confirmation before I proceed with an alternate

Thank you,


Point Sprite support

by Robert Green » Tue, 06 Oct 2009 11:52:39 GMT

 Can I guess that you're trying that on the emulator?

String extensions = gl.glGetString(GL10.GL_EXTENSIONS);
Log.i(TAG, "GL Extensions [" + extensions + "]");

Add that into your Renderer.onSurfaceCreated() so that you can see
what extensions are available on the platform you're developing for.
I recommend adding a method to check if point_sprite is supported in
that list and if so, use them, but if not, perhaps developing a Gl10
equivalent that is used for a backup is a good idea.

I do that for mipmaps.  If hardware support is there, I let it
generate them, otherwise I have a loop that creates and uploads them.


Sponsored Links

Point Sprite support

by Scott » Wed, 07 Oct 2009 06:19:46 GMT

 Thanks for the tip, Robert. GL_OES_point_sprite is indeed output as an
extension on the G1, but not in the emulator. I can at least explore
this functionality if not as conveniently debug it.

Point Sprite support

by Scott » Tue, 13 Oct 2009 06:10:26 GMT

 All right. Perhaps a silly follow-on question. If the hardware
supports point sprites, but does not support non-power-of-two
textures, then can I support non-power-of-two image dimensions for my
point sprites? I realize I can copy an image into a portion of a
larger sized power-of-two texture, but I don't believe I can blit that
portion of the texture as a point sprite. Can someone please confirm?

Thank you,

Other Threads

1. All type of Vacancy for Management & graduate jobs

Are You A Marketing Manager & Searching For a Job


2. How to compile kernel for Andro id Virtual Device 锛

While starting the emulator, you can specify "debug-all" at command line so
that you can view what is all happening when emulator is starting up. It
will show you what command line arguments you passed, what is their values
and some other useful info for debugging.

# emulator @android2.2 -kernel <path_to_zimage> -debug-all

Hope this helps,


> website: 

3. OOT: Perkenalan Nubie

4. Referencing Android custom library cause runtime class not found error in Application

5. Testing Live Wallpaper

6. Unboxing Motorola DROID PRO

7. OOT : Sepenggal Kisah Android