If not mipmapping, you can do rectangular powers of two (512x256,
1024x512) but if using mips, you need to keep it square (256x256,
512x512).

Some devices can do non power of two, but a good rule of thumb is to
always use it.  If you have some reason not to, you can check the
extensions for the NPOT extension and if it's present, you can use any
dimensions under 2k I believe.

On Feb 7, 10:23 am, Marcin Orlowski <webnet.andr...@gmail.com> wrote:
> On 7 February 2011 19:22, Marcin Orlowski <webnet.andr...@gmail.com> wrote:
>
> > On 7 February 2011 18:57, bob <b...@coolgroups.com> wrote:
> >> Do opengl textures on Android have to be a width and height that is a
> >> power of 2?
>
> > In general: yes as some devices will won't handle your textures otherwise.
>
> It applies to width (for quite obvious reasons), yet I am not sure about 
> height
> and can't check now.

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

Reply via email to