MCPcopy Create free account
hub / github.com/Card-Forge/forge / drawImageWithTransforms

Method drawImageWithTransforms

forge-gui-mobile/src/forge/Graphics.java:1414–1418  ·  view source on GitHub ↗
(TextureRegion image, float x, float y, float w, float h, float rotation, boolean flipX, boolean flipY)

Source from the content-addressed store, hash-verified

1412 }
1413
1414 public void drawImageWithTransforms(TextureRegion image, float x, float y, float w, float h, float rotation, boolean flipX, boolean flipY) {
1415 float originX = x + w / 2;
1416 float originY = y + h / 2;
1417 batch.draw(image.getTexture(), adjustX(x), adjustY(y, h), originX - x, h - (originY - y), w, h, 1, 1, rotation, image.getRegionX(), image.getRegionY(), image.getRegionWidth(), image.getRegionHeight(), flipX, flipY);
1418 }
1419
1420 public void setProjectionMatrix(Matrix4 matrix) {
1421 batch.setProjectionMatrix(matrix);

Callers

nothing calls this directly

Calls 6

adjustXMethod · 0.95
adjustYMethod · 0.95
drawMethod · 0.65
getTextureMethod · 0.45
getRegionXMethod · 0.45
getRegionYMethod · 0.45

Tested by

no test coverage detected