POT textures #334 improvements and samples
This commit is contained in:
@@ -60,18 +60,18 @@ public class AndroidCanvas implements Canvas {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmap(Bitmap bitmap) {
|
||||
public void drawBitmap(Bitmap bitmap, float x, float y) {
|
||||
canvas.drawBitmap(((AndroidBitmap) bitmap).mBitmap, x, y, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmapScaled(Bitmap bitmap) {
|
||||
android.graphics.Bitmap scaledBitmap = android.graphics.Bitmap.createScaledBitmap(
|
||||
((AndroidBitmap) bitmap).mBitmap, canvas.getWidth(), canvas.getHeight(), true);
|
||||
canvas.drawBitmap(scaledBitmap, 0, 0, null);
|
||||
scaledBitmap.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmap(Bitmap bitmap, float x, float y) {
|
||||
canvas.drawBitmap(((AndroidBitmap) bitmap).mBitmap, x, y, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawCircle(float x, float y, float radius, Paint paint) {
|
||||
canvas.drawCircle(x, y, radius, ((AndroidPaint) paint).mPaint);
|
||||
|
||||
Reference in New Issue
Block a user