Skip to content

Commit

Permalink
Fixed EDraw.drawRect(Texture...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelaux committed Oct 1, 2023
1 parent 975474b commit 4d5b2ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphics/extendedDraw/src/arclibrary/graphics/EDraw.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public static void drawBuffer(FrameBuffer buffer){
public static void rect(Texture texture, float x, float y, float width, float height){
float color = Draw.getColor().toFloatBits();
quad(texture,
x, y, color, 0, 0,
x, y + height, color, 0, 1,
x + width, y + height, color, 1, 1,
x + width, y, color, 1, 0
x, y, color, 0, 1,
x, y + height, color, 0, 0,
x + width, y + height, color, 1, 0,
x + width, y, color, 1, 1
);
}

Expand Down

0 comments on commit 4d5b2ac

Please sign in to comment.