POT textures (#334)
This commit is contained in:
@@ -83,6 +83,15 @@ 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();
|
||||
|
||||
Reference in New Issue
Block a user