Skip to content

Commit

Permalink
fix texture offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Oct 4, 2024
1 parent 0c486b5 commit 58f0b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/textures.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main(void) {
RSoft_setMatrix(rotateAroundCenter(RSOFT_VECTOR2D(500, 150), angle));
RSoft_drawTriangleF(win->buffer, (RSoft_vector[3]){v1, v2, v3}, (u8[4]){255, 225, 225, 255});

RSoft_setTexture(buffer, RSOFT_RECT(0, 100, 200, 200), RSOFT_AREA(w, h));
RSoft_setTexture(buffer, RSOFT_RECT(0, 0, 200, 200), RSOFT_AREA(w, h));
RSoft_setMatrix(rotateAroundCenter(RSOFT_VECTOR2D(250, 250), angle));
RSoft_drawRectF(win->buffer, RSOFT_RECTF(150, 150, 200, 200), (u8[4]){255, 225, 225, 255});

Expand Down

0 comments on commit 58f0b8b

Please sign in to comment.