Problem with glDrawElements(...);

by Gowthama Venkatesh V T » Thu, 14 Oct 2010 01:35:43 GMT

Sponsored Links

I am using glDrawElements(GL20ES.GL_TRIANGLES, vertexCount,
GL20ES.GL_UNSIGNED_SHORT, 0); to draw triangles and drwaing was

But when I use GL20ES.GL_UNSIGNED_INT instead of
GL10.GL_UNSIGNED_SHORT drawing failed.

Does glDrawElements supports GL_UNSIGNED_INT?.
If not how to handle unsigned int (GL_UNSIGNED_INT)?.


Other Threads

1. unexplained / unwanted "diagnostic" output in the upper right corner of emulator screen

I have a very simple(istic) test app that produces different results
depending which emulator (Android Virtual Device AVD) I target.

I'm using Eclipse Helios with the latest SDK and ADT plugins

All I'm doing is generating an activity with an empty TextView in the
otherwise empty display window.  The title and the status bar on the
window are suppressed, so the window is supposed to be all black.

I will spare you the code for now,  just please have a look at the
screenshots of the results, and hopefully you have a clue of how / why
Android 1.5 might (automatically) produce this unexplained / unwanted
"diagnostic" in the upper right corner of the emulator screen, whereas
the 1.6 AVD (left side) is empty, as it should be.  See:

Left  side is AVD Android 1.5 - API level 3 with the unwanted stuff
right side is Android 1.6 - API level 4 and higher.

Any clue what this stuff is in the upper right corner of the left AVD?

Santa Barbara, CA


2. Entering application from Task Manager

Hi Android Developers,

I would like to have users entering my application via my Main
Activity, from Android's menu, and from the Task Manager. Currently
all my Activities are in single instance mode, and all my Activities
have no history set to true except for the Main Activity.

When users navigate away from my Main Activity into another activity,
and pressing the hardware Back button from the second Activity will
get them back to the Main Activity.

However, when users navigate away from my Main Activity into another
activity, press the hardware Home button of the Android device to get
to Android's Home screen, access the Task Manager by holding the Home
button, and select my application from the grid of running Activities,
the application shows the second activity. If users press the hardware
Back button in the second Activity, they go to Android's Home screen
instead of Main Activity.

Note that I did not call finish() on my Main Activity when launching
the second Activity. Also, launching the application from Android's
menu displays my desired behavior when my application is running, that
is to show the Main Activity.

How could I achieve my expected behavior of closing all Activities
except for the Main Activity when I access my running application from
the Task Manager?



3. How to detect Face and Smile & Face matching in Android?

4. Problem regarding Broadcast event "android.intent.action.ACTION_CALL"

5. SGS Lag while auto-brightness on?

6. Quick Search Box. Content ProviderLess.

7. Cache Manifest