gtk3-0.14.5: Binding to the Gtk+ 3 graphical user interface library

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.Gdk.GLContext

Contents

Description

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

Types

Methods