mirror of
https://github.com/fltk/fltk.git
synced 2026-05-26 10:07:06 +08:00
Doxygen documentation: completed Fl_Gl_Window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+12
-4
@@ -127,11 +127,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void context_valid(char v) {if (v) valid_f_ |= 2; else valid_f_ &= 0xfd;}
|
void context_valid(char v) {if (v) valid_f_ |= 2; else valid_f_ &= 0xfd;}
|
||||||
|
|
||||||
|
/** Returns non-zero if the hardware supports the given or current OpenGL mode. */
|
||||||
static int can_do(int m) {return can_do(m,0);}
|
static int can_do(int m) {return can_do(m,0);}
|
||||||
|
/** Returns non-zero if the hardware supports the given or current OpenGL mode. */
|
||||||
static int can_do(const int *m) {return can_do(0, m);}
|
static int can_do(const int *m) {return can_do(0, m);}
|
||||||
/**
|
/** Returns non-zero if the hardware supports the given or current OpenGL mode. */
|
||||||
See static int Fl_Gl_Window::can_do(int)
|
|
||||||
*/
|
|
||||||
int can_do() {return can_do(mode_,alist);}
|
int can_do() {return can_do(mode_,alist);}
|
||||||
/**
|
/**
|
||||||
Set or change the OpenGL capabilites of the window. The value can be
|
Set or change the OpenGL capabilites of the window. The value can be
|
||||||
@@ -162,8 +162,11 @@ public:
|
|||||||
window a child of another window if you wish to do this!
|
window a child of another window if you wish to do this!
|
||||||
*/
|
*/
|
||||||
Fl_Mode mode() const {return (Fl_Mode)mode_;}
|
Fl_Mode mode() const {return (Fl_Mode)mode_;}
|
||||||
|
/** See Fl_Mode mode() const */
|
||||||
int mode(int a) {return mode(a,0);}
|
int mode(int a) {return mode(a,0);}
|
||||||
|
/** See Fl_Mode mode() const */
|
||||||
int mode(const int *a) {return mode(0, a);}
|
int mode(const int *a) {return mode(0, a);}
|
||||||
|
/** void See void context(void* v, int destroy_flag) */
|
||||||
void* context() const {return context_;}
|
void* context() const {return context_;}
|
||||||
void context(void*, int destroy_flag = 0);
|
void context(void*, int destroy_flag = 0);
|
||||||
void make_current();
|
void make_current();
|
||||||
@@ -194,12 +197,17 @@ public:
|
|||||||
void make_overlay_current();
|
void make_overlay_current();
|
||||||
|
|
||||||
~Fl_Gl_Window();
|
~Fl_Gl_Window();
|
||||||
|
/**
|
||||||
|
Creates a new Fl_Gl_Window widget using the given size, and label string.
|
||||||
|
The default boxtype is FL_NO_BOX. The default mode is FL_RGB|FL_DOUBLE|FL_DEPTH.
|
||||||
|
*/
|
||||||
|
Fl_Gl_Window(int W, int H, const char *l=0) : Fl_Window(W,H,l) {init();}
|
||||||
/**
|
/**
|
||||||
Creates a new Fl_Gl_Window widget using the given position,
|
Creates a new Fl_Gl_Window widget using the given position,
|
||||||
size, and label string. The default boxtype is FL_NO_BOX. The
|
size, and label string. The default boxtype is FL_NO_BOX. The
|
||||||
default mode is FL_RGB|FL_DOUBLE|FL_DEPTH.
|
default mode is FL_RGB|FL_DOUBLE|FL_DEPTH.
|
||||||
*/
|
*/
|
||||||
Fl_Gl_Window(int W, int H, const char *l=0) : Fl_Window(W,H,l) {init();}
|
|
||||||
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
|
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
|
||||||
: Fl_Window(X,Y,W,H,l) {init();}
|
: Fl_Window(X,Y,W,H,l) {init();}
|
||||||
|
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ void Fl_Gl_Window::make_overlay_current() {
|
|||||||
glDrawBuffer(GL_FRONT);
|
glDrawBuffer(GL_FRONT);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
/** Hides the window if it is not this window, does nothing in WIN32*/
|
||||||
void Fl_Gl_Window::hide_overlay() {
|
void Fl_Gl_Window::hide_overlay() {
|
||||||
#if HAVE_GL_OVERLAY
|
#if HAVE_GL_OVERLAY
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|||||||
@@ -60,11 +60,7 @@ static char SWAP_TYPE = 0 ; // 0 = determine it from environment variable
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/** Returns non-zero if the hardware supports the given or current OpenGL mode. */
|
||||||
Returns non-zero if the hardware supports the given or current OpenGL
|
|
||||||
mode.
|
|
||||||
|
|
||||||
*/
|
|
||||||
int Fl_Gl_Window::can_do(int a, const int *b) {
|
int Fl_Gl_Window::can_do(int a, const int *b) {
|
||||||
return Fl_Gl_Choice::find(a,b) != 0;
|
return Fl_Gl_Choice::find(a,b) != 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user