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

Method draw

forge-gui-mobile/src/forge/assets/FSkinTexture.java:253–264  ·  view source on GitHub ↗
(Graphics g, float x, float y, float w, float h)

Source from the content-addressed store, hash-verified

251 }
252
253 @Override
254 public void draw(Graphics g, float x, float y, float w, float h) {
255 if (!isloaded)
256 load();
257 if (hasError)
258 return;
259 if (repeat) {
260 g.drawRepeatingImage(texture, x, y, w, h);
261 } else {
262 g.drawImage(texture, x, y, w, h);
263 }
264 }
265
266 public void drawRotated(Graphics g, float x, float y, float w, float h, float rotation) {
267 if (!isloaded)

Callers 1

drawMethod · 0.95

Calls 3

loadMethod · 0.95
drawRepeatingImageMethod · 0.80
drawImageMethod · 0.45

Tested by

no test coverage detected