diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-01-27 08:45:11 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-01-27 08:45:11 +0000 |
| commit | 59c96f54635aed579fcb40a1980ff3694af46bd8 (patch) | |
| tree | 06bbd99c434659190549626dd5380262ce6eb0c5 /documentation/Fl_Gl_Window.html | |
| parent | 7e0bd92469a8d9fd6fde66a856bfea703d587e71 (diff) | |
Fixes to documentation.
Restored the lines drawn around symbols, it uses fl_color_average to
pick a dark line color that is still deactivatable. Requested by CE.
git-svn-id: file:///fltk/svn/fltk/trunk@249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Fl_Gl_Window.html')
| -rw-r--r-- | documentation/Fl_Gl_Window.html | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/documentation/Fl_Gl_Window.html b/documentation/Fl_Gl_Window.html index f4010f756..6e5ad96be 100644 --- a/documentation/Fl_Gl_Window.html +++ b/documentation/Fl_Gl_Window.html @@ -124,7 +124,7 @@ mode. <BR> void Fl_Gl_Window::valid(char i)</A></H4> <TT>Fl_Gl_Window::valid()</TT> is turned off when FLTK creates a new context for this window or when the window resizes, and is turned on <I> -after</I><TT>draw()</TT> is called. You can use this inside your <TT> +after</I> <TT>draw()</TT> is called. You can use this inside your <TT> draw()</TT> method to avoid unneccessarily initializing the OpenGL context. Just do this: <UL><PRE> @@ -139,24 +139,6 @@ void mywindow::draw() { } </PRE></UL> -<TT>Fl_Gl_Window::valid()</TT> is turned off when FLTK creates a -new context for this window and by the window resizing, and is turned -on <I>after</I> draw() is called. You can use this inside your draw() -method to avoid unneccessarily initializing the OpenGL context. Just -do this: - -<UL><PRE> -void mywindow::draw() { - if (!valid()) { - glViewport(0,0,w(),h()); - glFrustum(...); - glLight(...); - ...other initilization... - } - ... draw your geometry here ... -} -</PRE></UL> - You can turn <TT>valid()</TT> on by calling <TT>valid(1)</TT>. You should only do this after fixing the transformation inside a <TT>draw()</TT> or after <TT>make_current()</TT>. This is done automatically after <TT> |
