Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
OpenGL context
Synopsis
Detail
GLContext is an object representing the platform-specific OpenGL drawing context.
GLContexts are created for a GdkWindow, and the context will match the GdkVisual of the window.
A GLContext
is not tied to any particular normal framebuffer. For instance, it cannot draw to
the Window back buffer. The GDK repaint system is in full control of the painting to that.
GDK will handle the integration of your rendering with that of other widgets.
Support for GLContext
is platform-specific, context creation can fail, returning NULL context.
A GLContext
has to be made "current" in order to start using it, otherwise any OpenGL call will
be ignored.
Class Hierarchy
|GObject
| +----GLContext