public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Null safe equals.
|
static TextureItem |
loadTexture(java.lang.String relativePathPrefix,
java.lang.String src,
int width,
int height,
int percent)
Load a texture from a specified location and optional dimensions.
|
static Bitmap |
potBitmap(Bitmap bitmap)
Returns a Bitmap with POT size, if
Parameters.POT_TEXTURES is true. |
public static boolean equals(java.lang.Object o1,
java.lang.Object o2)
public static TextureItem loadTexture(java.lang.String relativePathPrefix, java.lang.String src, int width, int height, int percent)
public static Bitmap potBitmap(Bitmap bitmap)
Parameters.POT_TEXTURES is true.
Else the returned Bitmap is the same instance of given Bitmap.
If the given Bitmap has POT size, the given instance is returned.