diff options
Diffstat (limited to 'src/engine/client')
| -rw-r--r-- | src/engine/client/ec_gfx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c index 41e55fbe..431350f2 100644 --- a/src/engine/client/ec_gfx.c +++ b/src/engine/client/ec_gfx.c @@ -1024,3 +1024,14 @@ void gfx_lines_draw(float x0, float y0, float x1, float y1) draw_line(); } + +void gfx_clip_enable(int x, int y, int w, int h) +{ + glScissor(x, gfx_screenheight()-(y+h), w, h); + glEnable(GL_SCISSOR_TEST); +} + +void gfx_clip_disable() +{ + glDisable(GL_SCISSOR_TEST); +} |