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

Method drawFlippedImage

forge-gui-mobile/src/forge/Graphics.java:1410–1412  ·  view source on GitHub ↗
(Texture image, float x, float y, float w, float h)

Source from the content-addressed store, hash-verified

1408
1409 //draw vertically flipped image
1410 public void drawFlippedImage(Texture image, float x, float y, float w, float h) {
1411 batch.draw(image, adjustX(x), adjustY(y, h), w, h, 0, 0, image.getWidth(), image.getHeight(), false, true);
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;

Callers 2

drawMethod · 0.80
drawFlippedMethod · 0.80

Calls 5

adjustXMethod · 0.95
adjustYMethod · 0.95
drawMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65

Tested by

no test coverage detected