#include <gls_display_frame.h>
|  | 
| void | make_current () | 
|  | 
| void | end () | 
|  | 
| void | resizable (OpenGLWindow *win) | 
|  | 
| void | resize (int x, int y, int w, int h) | 
|  | 
| void | show () | 
|  | 
| int | handle (int) | 
|  | 
|  | OpenGLWindow (int x, int y, int w, int h, const char *l, glsDisplayFrame *frame_) | 
|  | 
| void | GrabWindow (char *filename) | 
|  | 
| void | WindowToLogical (glsDisplayFrame *frame, float x, float y, float &lx, float &ly) | 
|  | 
OpenGLWindow is a GL Studio specific implementation of the Fltk Fl_Gl_Window 
◆ OpenGLWindow()
Constructor for window 
- Parameters
- 
  
    | x | Initial x loc of window |  | y | Initial y loc of window |  | w | Initial width of window |  | h | Initial height of window |  | l | Window title |  | frame_ | Display to associate with window |  
 
 
 
◆ end()
Overload of FLTK end() method. Used to signal FLTK to not make this the "current" window to add widgets to 
 
 
◆ GrabWindow()
      
        
          | void GrabWindow | ( | char * | filename | ) |  | 
      
 
Grabs the window contents and saves them to an uncompressed 24 bit BMP file 
- Parameters
- 
  
    | filename | Name of the file to write a BMP to |  
 
 
 
◆ handle()
Overload of FLTK event handle routine. This is how mouse and keyboard events get passed in. 
- Returns
- 0 if the event was not handled, otherwise non zero (usually 1). 
 
 
◆ make_current()
Overload of FLTK make_current() method. Sets this window as the current OpenGL context 
 
 
◆ resizable()
Overload of FLTK resizable() method. 
- Parameters
- 
  
    | win | The widget to be used as the resizable region. |  
 
 
 
◆ resize()
      
        
          | void resize | ( | int | x, | 
        
          |  |  | int | y, | 
        
          |  |  | int | w, | 
        
          |  |  | int | h | 
        
          |  | ) |  |  | 
      
 
Overload of FLTK resize() method. Resizes the window. 
- Parameters
- 
  
    | x | New x coordinate of window on screen |  | y | New y coordinate of window on screen |  | w | New width of window in pixels |  | h | New height of window in pixels |  
 
 
 
◆ show()
Overload of FLTK show() method. Sets the visible flag for this window, causing it to be shown the next time the FLTK event loop is checked. 
 
 
◆ WindowToLogical()
      
        
          | void WindowToLogical | ( | glsDisplayFrame * | frame, | 
        
          |  |  | float | x, | 
        
          |  |  | float | y, | 
        
          |  |  | float & | lx, | 
        
          |  |  | float & | ly | 
        
          |  | ) |  |  | 
      
 
Converts mouse window coordinates to logical simulation coordinates. 
- Parameters
- 
  
    | frame | DisplayFrame to convert for |  | x | Mouse Device coordinate |  | y | Mouse Device coordinate |  | lx | Filled in with logical X coordinate |  | ly | Filled in with logical Y coordinate |  
 
 
 
The documentation for this class was generated from the following file: