diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-07-19 07:33:03 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-07-19 07:33:03 +0200 |
| commit | 3fbb1c4af29d546a59461207a53dd135d5c1d718 (patch) | |
| tree | 1b2b2fa48db086da82a28b9eec0f64baa667ac4f /documentation/src/opengl.dox | |
| parent | 4fb4f395a3231293c31b0c01637882e3f62d6174 (diff) | |
Remove obsolete content in documentation of Fl_Gl_Window
see "About the documentation of OpenGL usage in FLTK" in fltk.coredev
Diffstat (limited to 'documentation/src/opengl.dox')
| -rw-r--r-- | documentation/src/opengl.dox | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox index 14f33a625..c1ce8a9fd 100644 --- a/documentation/src/opengl.dox +++ b/documentation/src/opengl.dox @@ -39,34 +39,7 @@ To make a subclass of Fl_Gl_Window, you must provide: If your subclass provides static controls in the window, they must be redrawn whenever the \p FL_DAMAGE_ALL bit is set -in the value returned by \p damage(). For double-buffered -windows you will need to surround the drawing code with the -following code to make sure that both buffers are redrawn: - -\code -#ifndef MESA -glDrawBuffer(GL_FRONT_AND_BACK); -#endif // !MESA -... draw stuff here ... -#ifndef MESA -glDrawBuffer(GL_BACK); -#endif // !MESA -\endcode - -<CENTER><TABLE WIDTH="80%" BORDER="1" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#cccccc"> -<TR> - <TD><B>Note:</B> - - If you are using the Mesa graphics library, the call - to \p glDrawBuffer() is not required and will slow - down drawing considerably. The preprocessor instructions - shown above will optimize your code based upon the - graphics library used. - - </TD> - -</TR> -</TABLE></CENTER> +in the value returned by \p damage(). \subsection opengl_defining Defining the Subclass |
