From acf7254fe8337e8b06462555d09d6521723c2024 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 27 Nov 2022 08:06:33 +0100 Subject: macOS+OpenGL3: remove "warning: gl.h and gl3.h are both included" --- src/gl_draw.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gl_draw.cxx') 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; -- cgit v1.2.3