Skip to content

Commit

Permalink
Update RSGL.h | ensure RGL_TRIANGLES_2D is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley authored Mar 7, 2024
1 parent c525de9 commit 514614b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RSGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ void RSGL_drawRectF(RSGL_rectF r, RSGL_color c) {

RSGL_point3DF center = RSGL_POINT3DF(r.x + (r.w / 2.0f), r.y + (r.h / 2.0f), 0.0f);

RSGL_basicDraw(RGL_TRIANGLES, (RSGL_point3DF*)points, (RSGL_pointF*)texPoints, center, c, 6);
RSGL_basicDraw(RGL_TRIANGLES_2D, (RSGL_point3DF*)points, (RSGL_pointF*)texPoints, center, c, 6);
}

void RSGL_drawRoundRectF(RSGL_rectF r, RSGL_point rounding, RSGL_color c) {
Expand Down Expand Up @@ -3108,4 +3108,4 @@ bool RSGL_pointCollide(RSGL_point p, RSGL_point p2){ return (p.x == p2.x && p.y
bool RSGL_rectCollidePointF(RSGL_rectF r, RSGL_pointF p){ return (p.x >= r.x && p.x <= r.x + r.w && p.y >= r.y && p.y <= r.y + r.h); }
bool RSGL_rectCollideF(RSGL_rectF r, RSGL_rectF r2){ return (r.x + r.w >= r2.x && r.x <= r2.x + r2.w && r.y + r.h >= r2.y && r.y <= r2.y + r2.h); }
bool RSGL_pointCollideF(RSGL_pointF p, RSGL_pointF p2){ return (p.x == p2.x && p.y == p2.y); }
#endif /* RSGL_IMPLEMENTATION */
#endif /* RSGL_IMPLEMENTATION */

0 comments on commit 514614b

Please sign in to comment.