(Graphics g, float x, float y, float w, float h)
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public void draw(Graphics g, float x, float y, float w, float h) { |
| 54 | float originX, originY, rotation; |
| 55 | if (clockwise) { |
| 56 | originX = x + w / 2; |
| 57 | originY = y + w / 2; |
| 58 | rotation = -90; |
| 59 | } |
| 60 | else { |
| 61 | originX = x + h / 2; |
| 62 | originY = y + h / 2; |
| 63 | rotation = 90; |
| 64 | } |
| 65 | g.drawRotatedImage(texture, x, y, h, w, originX, originY, srcX, srcY, srcWidth, srcHeight, rotation); |
| 66 | } |
| 67 | } |
nothing calls this directly
no test coverage detected