|
|
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 ] | |
|
| |