summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 11:42:01 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 11:42:01 -0500
commitcefdff9a6a449506ddaeae56a2e038a1a2106846 (patch)
treee5753b372848e62528ed08b5c2d70d406914a16f /math.c
parentf6fe651ed8bedb0308f75a7b15ef913add799848 (diff)
converted everything to modern opengl
for some reason SDL_GL_SwapWindow seems to be in a busy loop?
Diffstat (limited to 'math.c')
-rw-r--r--math.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/math.c b/math.c
index 00735cf..2b01730 100644
--- a/math.c
+++ b/math.c
@@ -720,6 +720,8 @@ static void rect_print(Rect r) {
}
#if MATH_GL
+
+#if 0
// must be rendering GL_QUADS to use these functions!
static void rect_render(Rect r) {
@@ -754,7 +756,7 @@ static void rect_render_border(Rect r, float border_thickness) {
glVertex2f(x2+border_radius, y2+border_radius);
glVertex2f(x2-border_radius, y2+border_radius);
}
-
+#endif
/*
gl grayscale color