gtkglext-0.12.1: Binding to the GTK+ OpenGL Extension

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

Graphics.UI.Gtk.OpenGL.Drawable

Contents

Description

OpenGL rendering surface interface

Synopsis

Class Hierarchy

 | GObject
 | +----GLDrawable

Types

Methods

glDrawableMakeCurrentSource

Arguments

:: GLDrawableClass self 
=> self 
-> GLContext 
-> IO Bool

returns True if it is successful, False otherwise.

Attach an OpenGL rendering context to a GL drawable.

glDrawableIsDoubleBufferedSource

Arguments

:: GLDrawableClass self 
=> self 
-> IO Bool

returns True if the double-buffered visual is supported, False otherwise.

Returns whether the GL drawable supports the double-buffered visual.

glDrawableSwapBuffers :: GLDrawableClass self => self -> IO ()Source

Exchange front and back buffers.

glDrawableWaitGL :: GLDrawableClass self => self -> IO ()Source

Complete OpenGL execution prior to subsequent Gdk drawing calls.

glDrawableWaitGdk :: GLDrawableClass self => self -> IO ()Source

Complete Gdk drawing execution prior to subsequent OpenGL calls.

glDrawableGLBeginSource

Arguments

:: GLDrawableClass self 
=> self 
-> GLContext

glcontext - a GLContext.

-> IO Bool

returns True if it is successful, False otherwise.

Delimits the begining of the OpenGL execution.

glDrawableGLEnd :: GLDrawableClass self => self -> IO ()Source

Delimits the end of the OpenGL execution.

glDrawableGetGLConfig :: GLDrawableClass self => self -> IO GLConfigSource

Gets GLConfig with which the GL drawable is configured.

glDrawableGetSizeSource

Arguments

:: GLDrawableClass self 
=> self 
-> IO (Int, Int)
(width, height)

Returns the width and height of the GL drawable.

glDrawableGetCurrentSource

Arguments

:: IO (Maybe GLDrawable)

returns the current Drawable or Nothing if there is no current drawable.

Returns the current GLDrawable.