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. Activesync policies

We are looking to move to Android devices from a corporate standpoint.
The catch that I have read in some blogs, while Android phones do
support Activesync, they do not support policies (Password required,
remote wipe...) I assume to complete with the other major phones this
would be included. Anyone know about this or know where to find the
official supported activesync policies?


2. ADC2 Apps Available for Download freely??!!!

I came across this site and I found that Apps submitted for ADC2 and
not yet on market are freely available for download on this site

Can Google answer this how is it possible??!!!


3. Android on various devices

4. First QVGA Android Phone 鈥?HTC T attoo鈩?鈥?on sale October 2009. Is your application rea dy?

5. Smart (Android) Mobile Developer Competition (official voting Oct. 10 to 15)

6. Subscription and Payment System

7. javax.imageio.ImageIO?