31 #ifndef Fl_Gl_Window_H
32 #define Fl_Gl_Window_H
34 #include "Fl_Window.H"
40 typedef void* GLContext;
73 virtual void draw_overlay();
78 friend class _Fl_Gl_Overlay;
80 static int can_do(
int,
const int *);
81 int mode(
int,
const int *);
89 void resize(
int,
int,
int,
int);
116 char valid()
const {
return valid_f_ & 1;}
120 void valid(
char v) {
if (v) valid_f_ |= 1;
else valid_f_ &= 0xfe;}
181 void context(
void*,
int destroy_flag = 0);
191 int can_do_overlay();
198 void redraw_overlay();
207 void make_overlay_current();
virtual void resize(int, int, int, int)
Changes the size and position of the window.
virtual Fl_Gl_Window * as_gl_window()
Returns an Fl_Gl_Window pointer if this widget is an Fl_Gl_Window.
Definition: Fl_Gl_Window.H:210
This widget produces an actual window.
Definition: Fl_Window.H:58
Fl_Mode mode() const
Set or change the OpenGL capabilites of the window.
Definition: Fl_Gl_Window.H:174
void * context() const
void See void context(void* v, int destroy_flag)
Definition: Fl_Gl_Window.H:180
virtual void draw()
Draws the widget.
Definition: Fl_Window.cxx:104
int mode(int a)
See Fl_Mode mode() const.
Definition: Fl_Gl_Window.H:176
static int can_do(const int *m)
Returns non-zero if the hardware supports the given or current OpenGL mode.
Definition: Fl_Gl_Window.H:138
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
Creates a new Fl_Gl_Window widget using the given position, size, and label string.
Definition: Fl_Gl_Window.H:224
char context_valid() const
Will only be set if the OpenGL context is created or recreated.
Definition: Fl_Gl_Window.H:129
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition: Enumerations.H:917
virtual void show()
Puts the window on the screen.
virtual int handle(int)
Handles the specified event.
Definition: Fl.cxx:1481
int can_do()
Returns non-zero if the hardware supports the given or current OpenGL mode.
Definition: Fl_Gl_Window.H:140
Definition: Fl_Gl_Choice.H:73
Fl_Gl_Window(int W, int H, const char *l=0)
Creates a new Fl_Gl_Window widget using the given size, and label string.
Definition: Fl_Gl_Window.H:217
void make_current()
Sets things up so that the drawing functions in will go into this window.
The Fl_Gl_Window widget sets things up so OpenGL works.
Definition: Fl_Gl_Window.H:65
int mode(const int *a)
See Fl_Mode mode() const.
Definition: Fl_Gl_Window.H:178
void context_valid(char v)
See char Fl_Gl_Window::context_valid() const.
Definition: Fl_Gl_Window.H:133
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw(). ...
Definition: Fl.cxx:1702
static int can_do(int m)
Returns non-zero if the hardware supports the given or current OpenGL mode.
Definition: Fl_Gl_Window.H:136
char valid() const
Is turned off when FLTK creates a new context for this window or when the window resizes, and is turned on after draw() is called.
Definition: Fl_Gl_Window.H:116
void valid(char v)
See char Fl_Gl_Window::valid() const.
Definition: Fl_Gl_Window.H:120
virtual void hide()
Removes the window from the screen.
Definition: Fl.cxx:1368