gtkglext-0.12.0: Binding to the GTK+ OpenGL Extension

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

Graphics.UI.Gtk.OpenGL.Context

Contents

Description

OpenGL rendering context object

Synopsis

Types

Constructors

glContextNewSource

Arguments

:: GLDrawableClass gldrawable 
=> gldrawable

gldrawable - a GLDrawable.

-> Maybe GLContext

shareList - the GLContext with which to share display lists and texture objects. A value of Nothing indicates that no sharing is to take place.

-> Bool

direct - whether rendering is to be done with a direct connection to the graphics system.

-> GLRenderType

renderType - RGBAType or ColorIndexType (currently not used).

-> IO GLContext 

Creates a new OpenGL rendering context.

Methods

glContextGetGLDrawableSource

Arguments

:: GLContext 
-> IO GLDrawable

returns the GLDrawable or Nothing if no GLDrawable is bound.

Gets GLDrawable to which the GLContext is bound.

glContextGetGLConfig :: GLContext -> IO GLConfigSource

Gets the GLConfig with which the GLContext is configured.

glContextGetShareList :: GLContext -> IO GLContextSource

Gets the other GLContext with which the GLContext shares the display lists and texture objects.

glContextIsDirect :: GLContext -> IO BoolSource

Returns whether the GLContext is a direct rendering context.

glContextGetCurrentSource

Arguments

:: IO (Maybe GLContext)

returns the current GLContext or Nothing if there is no current context.

Returns the current GLContext.