POT textures #334 improvements and samples
This commit is contained in:
1 parent
d1fdca170e
commit
4c9354c326
16 files changed
+151
-246
No files matched your search
@@ -83,15 +83,6 @@ public class IosCanvas implements Canvas {
|
||||
iosFill.drawLine(this.cgBitmapContext, string, x, y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmap(Bitmap bitmap) {
|
||||
CGRect rect = new CGRect(0, 0, this.cgBitmapContext.getWidth(), this.cgBitmapContext.getHeight());
|
||||
this.cgBitmapContext.saveGState();
|
||||
this.cgBitmapContext.translateCTM(0, 0);
|
||||
this.cgBitmapContext.drawImage(rect, ((IosBitmap) bitmap).cgBitmapContext.toImage());
|
||||
this.cgBitmapContext.restoreGState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmap(Bitmap bitmap, float x, float y) {
|
||||
this.cgBitmapContext.saveGState();
|
||||
@@ -101,6 +92,15 @@ public class IosCanvas implements Canvas {
|
||||
this.cgBitmapContext.restoreGState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawBitmapScaled(Bitmap bitmap) {
|
||||
CGRect rect = new CGRect(0, 0, this.cgBitmapContext.getWidth(), this.cgBitmapContext.getHeight());
|
||||
this.cgBitmapContext.saveGState();
|
||||
this.cgBitmapContext.translateCTM(0, 0);
|
||||
this.cgBitmapContext.drawImage(rect, ((IosBitmap) bitmap).cgBitmapContext.toImage());
|
||||
this.cgBitmapContext.restoreGState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawCircle(float x, float y, float radius, Paint paint) {
|
||||
CGRect rect = new CGRect(x - radius, y - radius, x + radius, y + radius);
|
||||
|
||||
Reference in new issue
Block a user