Skip to content

Commit

Permalink
remove drawFromRSTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
QiXi committed Oct 5, 2021
1 parent fefe517 commit 3f3ab6a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions lib/src/batch/batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@ abstract class Batch {

void drawTextureRegion(TextureRegion textureRegion, Float32List data, int? color);

void drawTextureRegionFromRSTransform(
TextureRegion textureRegion, RSTransform transform, int? color);

void drawTextureRegionFromData(
TextureRegion textureRegion, double scos, double ssin, double tx, double ty, int? color);

void drawImage(Image image, Float32List data, Float32List rect, int? color);

void drawImages(Image image, Float32List data, Float32List rect, int? color);

void drawImageFromRSTransform(Image image, Rect rect, RSTransform transform, int? color);

void drawImageFromData(
Image image, Rect rect, double scos, double ssin, double tx, double ty, int? color);

Expand Down
13 changes: 0 additions & 13 deletions lib/src/batch/engine_batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,12 @@ class EngineBatch extends Batch {
drawImage(textureRegion.image, data, textureRegion.rawRect, color ?? defaultColor);
}

@override
void drawTextureRegionFromRSTransform(
TextureRegion textureRegion, RSTransform transform, int? color) {
drawImageFromRSTransform(textureRegion.texture.image, textureRegion.rect, transform, color);
}

@override
void drawTextureRegionFromData(
TextureRegion textureRegion, double scos, double ssin, double tx, double ty, int? color) {
drawImageFromData(textureRegion.texture.image, textureRegion.rect, scos, ssin, tx, ty, color);
}

@override
void drawImageFromRSTransform(Image image, Rect rect, RSTransform transform, int? color) {
_checkFlush(image);
_image = image;
_batchData.fillFromRSTransform(transform, rect, color ?? defaultColor);
}

@override
void drawImageFromData(
Image image, Rect rect, double scos, double ssin, double tx, double ty, int? color) {
Expand Down

0 comments on commit 3f3ab6a

Please sign in to comment.