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

Method endTransform

forge-gui-mobile/src/forge/Graphics.java:1433–1446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1431 }
1432
1433 public void endTransform() {
1434 batch.end();
1435 shapeRenderer.setTransformMatrix(batch.getTransformMatrix().idt());
1436 Dtransforms.removeFirst();
1437 transformCount--;
1438 if (transformCount != Dtransforms.size()) {
1439 System.err.printf("Stack count: %d, transformCount: %d%n", Dtransforms.size(), transformCount);
1440 transformCount = 0;
1441 Dtransforms.clear();
1442 }
1443 batch.getTransformMatrix().idt(); //reset
1444 shapeRenderer.getTransformMatrix().idt(); //reset
1445 batch.begin();
1446 }
1447
1448 public void drawRotatedImage(Texture image, float x, float y, float w, float h, float originX, float originY, float rotation) {
1449 drawRotatedImage(image, x, y, w, h, originX, originY, 0, 0, image.getWidth(), image.getHeight(), rotation);

Callers 8

drawMethod · 0.95
renderMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
rotateTransformMethod · 0.80
drawCardMethod · 0.80
drawCardMethod · 0.80
drawCardMethod · 0.80

Calls 4

sizeMethod · 0.65
endMethod · 0.45
clearMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected