diff --git a/documentation/Fl_Gl_Window.html b/documentation/Fl_Gl_Window.html index 205d3225c..f4010f756 100644 --- a/documentation/Fl_Gl_Window.html +++ b/documentation/Fl_Gl_Window.html @@ -127,8 +127,7 @@ context for this window or when the window resizes, and is turned on afterdraw() is called. You can use this inside your draw() method to avoid unneccessarily initializing the OpenGL context. Just do this: -
+
void mywindow::draw() {
if (!valid()) {
glViewport(0,0,w(),h());
@@ -138,9 +137,7 @@ void mywindow::draw() {
}
... draw your geometry here ...
}
-
-
void Fl_Gl_Window::invalidate();
-
void Fl_Gl_Window::valid(char i);
+
Fl_Gl_Window::valid() is turned off when FLTK creates a
new context for this window and by the window resizing, and is turned
@@ -148,8 +145,8 @@ on after draw() is called. You can use this inside your draw()
method to avoid unneccessarily initializing the OpenGL context. Just
do this:
-
-void mywindow::draw() {
+
+void mywindow::draw() {
if (!valid()) {
glViewport(0,0,w(),h());
glFrustum(...);
@@ -158,11 +155,11 @@ do this:
}
... draw your geometry here ...
}
-
-
- You can turn valid() on by calling valid(1). You
+
+
+You can turn valid() on by calling valid(1). You
should only do this after fixing the transformation inside a draw()
- or after make_current(). This is done automatically after
+or after make_current(). This is done automatically after
draw() returns.