#include <windowext.h>
Public Member Functions | |
Glib::RefPtr< Window > | set_gl_capability (const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0) |
void | unset_gl_capability () |
bool | is_gl_capable () const |
Glib::RefPtr< Window > | get_gl_window () const |
Glib::RefPtr< Gdk::GL::Drawable > | get_gl_drawable () const |
Friends | |
WindowExtProxy | ext (const Glib::RefPtr< Gdk::Window > &) |
const WindowExtProxy | ext (const Glib::RefPtr< const Gdk::Window > &) |
|
Returns the Gdk::GL::Drawable held by the Gdk::Window .
|
|
Returns the Gdk::GL::Window held by the Gdk::Window .
|
|
Returns whether the Gdk::Window is OpenGL-capable.
|
|
Set the OpenGL-capability to the Gdk::Window. This function creates a new Gdk::GL::Window held by the Gdk::Window. attrib_list is currently unused. This must be set to
|
|
Unset the OpenGL-capability of the Gdk::Window. This function destroys the Gdk::GL::Window held by the Gdk::Window. |
|
OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions.
|
|
OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions. Here is a simple example: Glib::RefPtr<Gdk::Window> window = widget.get_window(); Glib::RefPtr<Gdk::GL::Window> glwindow = Gdk::GL::ext(window).set_gl_capability(glconfig); std::cout << "OpenGL-capable? " << Gdk::GL::ext(window).is_gl_capable() << std::endl;
|