FLTK logo

[master] 2cfb5fc - Document Fl_Gl_Window::draw_begin() and draw_end().

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 2cfb5fc - Document Fl_Gl_Window::draw_begin() and draw_end(). "ManoloFLTK" Aug 18, 2022  
 
commit 2cfb5fcc57878be040935503991a9c7ea150237a
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu Aug 18 11:21:35 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Aug 18 11:21:35 2022 +0200

    Document Fl_Gl_Window::draw_begin() and draw_end().

 src/Fl_Gl_Window.cxx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git src/Fl_Gl_Window.cxx src/Fl_Gl_Window.cxx
index c5cda4a..4295d44 100644
--- src/Fl_Gl_Window.cxx
+++ 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();
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.