Static Public Member Functions | |
static boolean | isCompatibleWithOpenGL (Bitmap bitmap) |
Check if the bitmap is compatible to use it with OpenGL, if not, use resizeImageToPowerOfTwo(bitmap) method. More... | |
static Bitmap | resizeImageToPowerOfTwo (Bitmap bitmap) |
Prepare the image to draw it using OpenGL. More... | |
Static Public Attributes | |
static final int | MAX_SIZE = 512 |
|
static |
Check if the bitmap is compatible to use it with OpenGL, if not, use resizeImageToPowerOfTwo(bitmap) method.
bitmap | The bitmap to check |
|
static |
Prepare the image to draw it using OpenGL.
There are devices that doesn't support images non power of two (size). Remember to recicle die bitmap if the old one is not needed anymore
bitmap |