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

Thank you,
Scott

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



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,
Scott.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Display multiple locations on Map

Hi,

In the App i m developing i need to pass multiple co-ordinates [Lat
and Long] and display all of them on the same MAP. Please let me know
if any sample code and how can i go about this.

-Sandeep

-- 

2. How to access database in BroadcastReceiver?

Hi, All:
I have a problem when using database in broadcastReceiver.  I can't open the
database created in the activity.
e.g:
malwareDB = new PackageDB(this);
The eclipse give me the error that "PackageDB(this)" is undefined. It seems
that the BroadcastReceiver doesn't support the database?
Do have have to access the data base in the "service"?

Here is the definition of "PackageDB":
public class PackageDB extends SQLiteOpenHelper
{
...
  public PackageDB(Context context)
  {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
  }
  public void onCreate(SQLiteDatabase db)
  {
    String sql = "CREATE TABLE " + TABLE_NAME + " (" + FIELD_id
        + " INTEGER primary key autoincrement, " + " " + FIELD_TEXT + "
text)";
    db.execSQL(sql);
  }
...
}

With many thanks.

BR, Feng.

-- 

3. how to make custom spinners

4. Correct way to use HandlerThread?

5. MediaPlayer id3/timing playback bug?

6. Eclair install choked with errors about locks and died horribly leaving corrupted install

7. How to select/install a locale other than English ?