Hi,


I'm trying to create a 1024x1024 texture in OpenGL. I'm trying to do
this with

Bitmap bmp = Bitmap.createBitmap(1024, 1024, Bitmap.Config.ARGB_8888);
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bmp, 0);

But I can't actually create a 1024x1024 Bitmap - I get an out of
memory exception.




I want to generate the texture, then use texSubImage2D to copy on
various smaller bitmaps, but it seems that I need to somehow define
that the texture is 1024x1024 before I can do that. Is there a
function that lets me define the size/argb settings without just
copying in a blank bitmap?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to