26class Fl_Gl_Window_Driver;
57 friend class Fl_Gl_Window_Driver;
58 Fl_Gl_Window_Driver *pGlWindowDriver;
66 virtual void draw_overlay();
71 static int can_do(
int,
const int *);
72 int mode(
int,
const int *);
73 static int gl_plugin_linkage();
112 char valid()
const {
return valid_f_ & 1;}
116 void valid(
char v) {
if (v) valid_f_ |= 1;
else valid_f_ &= 0xfe;}
199 void context(
GLContext,
int destroy_flag = 0);
202 void swap_interval(
int);
203 int swap_interval()
const;
206 int can_do_overlay();
207 void redraw_overlay();
209 void make_overlay_current();
215 float pixels_per_unit();
225 int pixel_w() {
return int(pixels_per_unit() *
w() + 0.5f); }
235 int pixel_h() {
return int(pixels_per_unit() *
h() + 0.5f); }
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition Enumerations.H:1297
Definition Fl_Gl_Choice.H:44
The Fl_Gl_Window widget sets things up so OpenGL works.
Definition Fl_Gl_Window.H:56
char context_valid() const
Will only be set if the OpenGL context is created or recreated.
Definition Fl_Gl_Window.H:125
int pixel_h()
Gives the window height in OpenGL pixels.
Definition Fl_Gl_Window.H:235
GLContext context() const
Returns a pointer to the window's OpenGL rendering context.
Definition Fl_Gl_Window.H:198
int can_do()
Returns non-zero if the hardware supports the current OpenGL mode.
Definition Fl_Gl_Window.H:137
static int can_do(int m)
Returns non-zero if the hardware supports the given OpenGL mode.
Definition Fl_Gl_Window.H:132
int mode(const int *a)
Set the OpenGL capabilities of the window using platform-specific data.
Definition Fl_Gl_Window.H:194
Fl_Gl_Window * as_gl_window() FL_OVERRIDE
Returns an Fl_Gl_Window pointer if this widget is an Fl_Gl_Window.
Definition Fl_Gl_Window.H:212
void show(int a, char **b)
Same as Fl_Window::show(int a, char **b)
Definition Fl_Gl_Window.H:82
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:249
int pixel_w()
Gives the window width in OpenGL pixels.
Definition Fl_Gl_Window.H:225
static int can_do(const int *m)
Returns non-zero if the hardware supports the given OpenGL mode.
Definition Fl_Gl_Window.H:135
void context_valid(char v)
See char Fl_Gl_Window::context_valid() const.
Definition Fl_Gl_Window.H:129
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:242
int mode(int a)
Set or change the OpenGL capabilities of the window.
Definition Fl_Gl_Window.H:182
void valid(char v)
See char Fl_Gl_Window::valid() const.
Definition Fl_Gl_Window.H:116
Fl_Mode mode() const
Returns the current OpenGL capabilities of the window.
Definition Fl_Gl_Window.H:141
This widget produces an actual window.
Definition Fl_Window.H:55
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw().
Definition Fl_Window.cxx:481
void make_current()
Sets things up so that the drawing functions in <FL/fl_draw.H> will go into this window.
Definition Fl_Window.cxx:533
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Window.cxx:491
void show() FL_OVERRIDE
Puts the window on the screen.
Definition Fl_Window.cxx:545
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46