From 7d0cf9299ae22b7ff6e9bfe1db31a44663ae83e7 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 20 Jan 2016 21:40:12 +0000 Subject: Wrapping up fl_rect.cxx implementation. Introducing 3 moer virtual functions to Fl_Graphics_Device - will that break binary compatibility? git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Gl_Window.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/Fl_Gl_Window.cxx') diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 0336238a4..e74065ac6 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -185,6 +185,27 @@ public: glVertex2i(x3, y3); glEnd(); } + void push_clip(int x, int y, int w, int h) { + // TODO: implement OpenGL clipping + } + int clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H) { + // TODO: implement OpenGL clipping + X = x; Y = y; W = w, H = h; + return 0; + } + int not_clipped(int x, int y, int w, int h) { + // TODO: implement OpenGL clipping + return 1; + } + void push_no_clip() { + // TODO: implement OpenGL clipping + } + void pop_clip() { + // TODO: implement OpenGL clipping + } + void restore_clip() { + // TODO: implement OpenGL clipping + } }; const char *Fl_OpenGL_Graphics_Driver::class_id = "Fl_OpenGL_Graphics_Driver"; -- cgit v1.2.3