diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-18 11:21:35 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-18 11:21:35 +0200 |
| commit | 2cfb5fcc57878be040935503991a9c7ea150237a (patch) | |
| tree | a61fe76fa48b19a47fbf3a392176346e150a3aaa /src/Fl_Gl_Window.cxx | |
| parent | f927a3047c84be70387c0292f93d02aeb357f304 (diff) | |
Document Fl_Gl_Window::draw_begin() and draw_end().
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index c5cda4ab2..4295d4465 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -338,7 +338,10 @@ void Fl_Gl_Window::init() { */ void Fl_Gl_Window::draw_overlay() {} - +/** + Supports drawing to an Fl_Gl_Window with the FLTK 2D drawing API. + \see \ref opengl_with_fltk_widgets + */ void Fl_Gl_Window::draw_begin() { Fl_Surface_Device::push_current( Fl_OpenGL_Display_Device::display_device() ); Fl_OpenGL_Graphics_Driver *drv = (Fl_OpenGL_Graphics_Driver*)Fl_Surface_Device::surface()->driver(); @@ -373,6 +376,10 @@ void Fl_Gl_Window::draw_begin() { // TODO: all of the settings should be saved on the GL stack } +/** + To be used as a match for a previous call to Fl_Gl_Window::draw_begin(). + \see \ref opengl_with_fltk_widgets + */ void Fl_Gl_Window::draw_end() { glMatrixMode(GL_MODELVIEW_MATRIX); glPopMatrix(); |
