public abstract class TextureProvider
extends java.lang.Object
A base class for providing textures to the MapView
| Modifier | Constructor and Description |
|---|---|
protected |
TextureProvider()
Constructs a new TextureProvider with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
abstract android.graphics.Bitmap |
getBitmap()
Gets a bitmap to be loaded as a texture.
|
long |
getId()
Gets the id of this provider.
|
android.graphics.Bitmap |
getNativeBitmap()
Gets the bitmap and updates size.
|
int[] |
getSize()
Gets the size of this texture.
|
void |
setSize(int width,
int height)
Sets the size of this texture.
|
protected TextureProvider()
Constructs a new TextureProvider with the given id. The id does not need to be unique.
public abstract android.graphics.Bitmap getBitmap()
Gets a bitmap to be loaded as a texture.
public final android.graphics.Bitmap getNativeBitmap()
Gets the bitmap and updates size. This method is intended to only be called by the JNI layer and is mainly a pass through for getBitmap.
public final long getId()
Gets the id of this provider.
public void setSize(int width,
int height)
Sets the size of this texture.
public int[] getSize()
Gets the size of this texture.