From d7b88a3bcc7e76f38ee5799be7722fd5a10781ef Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 13 Jan 1999 19:28:54 +0000 Subject: Updated all links so they work between files. Revision 1. git-svn-id: file:///fltk/svn/fltk/trunk@219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Gl_Window.html | 433 ++++++++++++++++++---------------------- 1 file changed, 193 insertions(+), 240 deletions(-) (limited to 'documentation/Fl_Gl_Window.html') diff --git a/documentation/Fl_Gl_Window.html b/documentation/Fl_Gl_Window.html index 47828b47c..205d3225c 100644 --- a/documentation/Fl_Gl_Window.html +++ b/documentation/Fl_Gl_Window.html @@ -1,166 +1,134 @@ - - - -
- -

class Fl_Gl_Window

- -
- -

Class Hierarchy

- - + 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 +draw() returns. +

void Fl_Gl_Window::invalidate()

+ The invalidate() method turns off valid() and is +equivalent to calling value(0). +

void Fl_Gl_Window::ortho()

+ Set the projection so 0,0 is in the lower left of the window and each +pixel is 1 unit wide/tall. If you are drawing 2D images, your +draw() method may want to call this if valid() is false. +

void Fl_Gl_Window::make_current() +

+ The make_current() method selects the OpenGL context for the +widget. It is called automatically prior to the draw() method +being called and can also be used to implement feedback and/or +selection within the handle() method. +

void +Fl_Gl_Window::make_overlay_current()

+ The make_overlay_current() method selects the OpenGL context +for the widget's overlay. It is called automatically prior to the +draw_overlay() method being called and can also be used to +implement feedback and/or selection within the handle() + method. +

void Fl_Gl_Window::swap_buffers() +

+ The swap_buffers() method swaps the back and front buffers. +It is called automatically after the draw() method is called. +

void Fl_Gl_Window::hide()

+ Hides the window and destroys the OpenGL context. +

int +Fl_Gl_Window::can_do_overlay()

+ Returns true if the hardware overlay is possible. If this is false, +FLTK will try to simulate the overlay, with significant loss of update +speed. Calling this will cause FLTK to open the display. +

void +Fl_Gl_Window::redraw_overlay()

+ This method causes draw_overlay to be called at a later time. + Initially the overlay is clear, if you want the window to display +something in the overlay when it first appears, you must call this +immediately after you show() your window. +

virtual void +Fl_Gl_Window::draw_overlay()

+ You must implement this virtual function if you want to draw into the +overlay. The overlay is cleared before this is called. You should +draw anything that is not clear using OpenGL. You must use +gl_color(i) to choose colors (it allocates them from the colormap +using system-specific calls), and remember that you are in an indexed +OpenGL mode and drawing anything other than flat-shaded will probably +not work. +

Both this function and Fl_Gl_Window::draw() should check +Fl_Gl_Window::valid() 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.

+ \ No newline at end of file -- cgit v1.2.3