question concerning glteximage2d and buffers

by » Thu, 10 Dec 2009 02:11:49 GMT

Sponsored Links
 for all those gl*Pointer functions you need to create bytebuffers
through ByteBuffer.allocatedirect. when you want to load a texture
through glteximage2d you need to supply a bytebuffer, too. can this be
a "normal" bytebuffer or do I have to create this one too via


question concerning glteximage2d and buffers

by Jeff Boody » Thu, 10 Dec 2009 12:46:48 GMT

 I believe that the only functions which require allocateDirect are the
gl*Pointer functions. A graphics driver will make it's own copy of the
image data passed in by glTexImage2D and therefore Java can safely
manage the image data passed into this function.

Also, if you use the current SDK you will either get a compile error
or a runtime warning (in logcat) if you pass an incorrectly allocated
ByteBuffer to an OpenGL function.

The following post has more information:

Sponsored Links

Other Threads

1. Can test a custom rom on emulator?

i can test a custom rom on emulator??i am beginner on rom developer,
and i want know if a make a custom rom i can test in a emulator..


2. Set android:layout_gravity from code ??

Hi All once again,

In xml we have android:layout_gravity ...

how can i set this for any view [say image button] ... from code ... plz
help ...any kind if suggestion will do ..


ibMap = new ImageButton(getApplicationContext());

ibMap.setLayoutParams(new LayoutParams(width,height));


now i want to set the android:layout_gravity from code ...


3. notifyDataSetChanged() not updating listview after orientation change

4. Ada yg punya program tiki tracking

5. Do VBOs really improve performance? Really?

6. SurfaceComposerClient: using an invalid surface id

7. Simple Cursor Adapter - List View