summaryrefslogtreecommitdiff
path: root/documentation/Fl_Gl_Window.html
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-01-14 22:14:01 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-01-14 22:14:01 +0000
commit46f509f7de8b069eccaa081bbb7112a532c33e51 (patch)
treec4f21d1d9169624f784eb3e67ac4850d871210fb /documentation/Fl_Gl_Window.html
parenta98c49d088c9101fea4ac8fd544f42249be1a8fd (diff)
More image updates, minor typos, etc.
git-svn-id: file:///fltk/svn/fltk/trunk@227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Fl_Gl_Window.html')
-rw-r--r--documentation/Fl_Gl_Window.html21
1 files changed, 9 insertions, 12 deletions
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 <I>
after</I><TT>draw()</TT> is called. You can use this inside your <TT>
draw()</TT> method to avoid unneccessarily initializing the OpenGL
context. Just do this:
-<UL>
-<PRE>
+<UL><PRE>
void mywindow::draw() {
if (!valid()) {
glViewport(0,0,w(),h());
@@ -138,9 +137,7 @@ void mywindow::draw() {
}
... draw your geometry here ...
}
-
-<BR>void Fl_Gl_Window::invalidate();
-<BR>void Fl_Gl_Window::valid(char i);
+</PRE></UL>
<TT>Fl_Gl_Window::valid()</TT> 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 <I>after</I> draw() is called. You can use this inside your draw()
method to avoid unneccessarily initializing the OpenGL context. Just
do this:
-</PRE>
-<PRE><TT>void mywindow::draw() {
+<UL><PRE>
+void mywindow::draw() {
if (!valid()) {
glViewport(0,0,w(),h());
glFrustum(...);
@@ -158,11 +155,11 @@ do this:
}
... draw your geometry here ...
}
-</TT></PRE>
-</UL>
- You can turn <TT>valid()</TT> on by calling <TT>valid(1)</TT>. You
+</PRE></UL>
+
+You can turn <TT>valid()</TT> on by calling <TT>valid(1)</TT>. You
should only do this after fixing the transformation inside a <TT>draw()</TT>
- or after <TT>make_current()</TT>. This is done automatically after <TT>
+or after <TT>make_current()</TT>. This is done automatically after <TT>
draw()</TT> returns.
<H4><A name=Fl_Gl_Window.invalidate>void Fl_Gl_Window::invalidate()</A></H4>
The <TT>invalidate()</TT> method turns off <TT>valid()</TT> and is
@@ -215,4 +212,4 @@ Fl_Gl_Window::valid()</TT> and set the same transformation. If you
don't your code may not work on other systems. Depending on the OS,
and on whether overlays are real or simulated, the OpenGL context may
be the same or different between the overlay and main window. </P>
-</BODY></HTML> \ No newline at end of file
+</BODY></HTML>