From 9bf19e2329a51f68b2f6b9c2d65db87ab3698f76 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Sat, 13 Sep 2008 22:33:03 +0000 Subject: WP1 merged from my branch, WP2 reserved, todo list updated. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/gl_start.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/gl_start.cxx') diff --git a/src/gl_start.cxx b/src/gl_start.cxx index a47aeaca7..868a0d894 100644 --- a/src/gl_start.cxx +++ b/src/gl_start.cxx @@ -109,7 +109,19 @@ void gl_finish() { glXWaitGL(); #endif } - +/** + This does the same thing as + Fl::visual(int) but also + requires OpenGL drawing to work. This must be done if + you want to draw in normal windows with OpenGL with gl_start() and + gl_end(). It may be useful to call this so your X + windows use the same visual as an + Fl_Gl_Window, which on + some servers will reduce colormap flashing. + +

See Fl_Gl_Window + for a list of additional values for the argument. +*/ int Fl::gl_visual(int mode, int *alist) { Fl_Gl_Choice *c = Fl_Gl_Choice::find(mode,alist); if (!c) return 0; -- cgit v1.2.3