diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gl_draw.cxx | 8 |
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; |
