#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
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 |
Overload of FLTK end() method. Used to signal FLTK to not make this the "current" window to add widgets to
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 |
Overload of FLTK event handle routine. This is how mouse and keyboard events get passed in
Overload of FLTK make_current() method. Sets this window as the current OpenGL context
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 |
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.
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: