summaryrefslogtreecommitdiff
path: root/src/gl_draw.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-27 08:06:33 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-27 08:06:33 +0100
commitacf7254fe8337e8b06462555d09d6521723c2024 (patch)
tree5a4abed33741165832a40c42760ea5ddaba33900 /src/gl_draw.cxx
parentbcb739f17f2036ce30ed5cd58627841b59190ea3 (diff)
macOS+OpenGL3: remove "warning: gl.h and gl3.h are both included"
Diffstat (limited to 'src/gl_draw.cxx')
-rw-r--r--src/gl_draw.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index 16a70a057..35b2007f8 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -225,6 +225,14 @@ void gl_rect(int x, int y, int w, int h) {
glEnd();
}
+/**
+ Fills the given rectangle with the current color.
+ \see gl_rect(int x, int y, int w, int h)
+ */
+void gl_rectf(int x,int y,int w,int h) {
+ glRecti(x,y,x+w,y+h);
+}
+
void gl_draw_image(const uchar* b, int x, int y, int w, int h, int d, int ld) {
if (!ld) ld = w*d;
GLint row_length;