22 #ifndef Fl_Gl_Window_H
23 #define Fl_Gl_Window_H
31 typedef void* GLContext;
64 virtual void draw_overlay();
69 friend class _Fl_Gl_Overlay;
71 static int can_do(
int,
const int *);
72 int mode(
int,
const int *);
73 static int gl_plugin_linkage();
81 void resize(
int,
int,
int,
int);
108 char valid()
const {
return valid_f_ & 1;}
112 void valid(
char v) {
if (v) valid_f_ |= 1;
else valid_f_ &= 0xfe;}
194 void context(
void*,
int destroy_flag = 0);
204 int can_do_overlay();
211 void redraw_overlay();
220 void make_overlay_current();
235 float pixels_per_unit();
246 int pixel_w() {
return int(pixels_per_unit() *
w() + 0.5); }
254 int pixel_h() {
return int(pixels_per_unit() *
h() + 0.5); }