gtkglext-0.12.0: Binding to the GTK+ OpenGL Extension

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

Graphics.UI.Gtk.OpenGL.Config

Contents

Description

OpenGL frame buffer configuration object

Synopsis

Types

Constructors

glConfigNewSource

Arguments

:: [GLConfigMode]

mode - display mode bit mask.

-> IO GLConfig 

Returns an OpenGL frame buffer configuration that match the specified display mode.

glConfigNewForScreenSource

Arguments

:: Screen

screen - target screen.

-> [GLConfigMode]

mode - display mode.

-> IO GLConfig 

Returns an OpenGL frame buffer configuration that matchs the specified display mode.

Methods

glConfigGetScreenSource

Arguments

:: GLConfig 
-> IO Screen

returns the Screen.

Gets the Screen associated with the GLConfig.

glConfigGetColormapSource

Arguments

:: GLConfig 
-> IO Colormap

returns the appropriate Colormap.

Gets the Colormap that is appropriate for the OpenGL frame buffer configuration.

glConfigGetDepthSource

Arguments

:: GLConfig 
-> IO Int

returns number of bits per pixel

Gets the color depth of the OpenGL-capable visual.

glConfigGetLayerPlaneSource

Arguments

:: GLConfig 
-> IO Int

returns layer plane.

Gets the layer plane (level) of the frame buffer. Zero is the default frame buffer. Positive layer planes correspond to frame buffers that overlay the default buffer, and negative layer planes correspond to frame buffers that underlie the default frame buffer.

glConfigGetNAuxBuffersSource

Arguments

:: GLConfig 
-> IO Int

returns number of auxiliary color buffers.

Gets the number of auxiliary color buffers.

glConfigGetNSampleBuffersSource

Arguments

:: GLConfig 
-> IO Int

returns number of multisample buffers.

Gets the number of multisample buffers.

glConfigIsRgbaSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the configured frame buffer is RGBA mode, False otherwise.

Returns whether the configured frame buffer is RGBA mode.

glConfigIsDoubleBufferedSource

Arguments

:: GLConfig 
-> IO Bool

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

Returns whether the configuration supports the double-buffered visual.

glConfigIsStereoSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the stereo visual is supported, False otherwise.

Returns whether the configuration supports the stereo visual.

glConfigHasAlphaSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the color buffer has alpha bits, False otherwise.

Returns whether the configured color buffer has alpha bits.

glConfigHasDepthBufferSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the frame buffer has depth buffer, False otherwise.

Returns whether the configured frame buffer has depth buffer.

glConfigHasStencilBufferSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the frame buffer has stencil buffer, False otherwise.

Returns whether the configured frame buffer has stencil buffer.

glConfigHasAccumBufferSource

Arguments

:: GLConfig 
-> IO Bool

returns True if the frame buffer has accumulation buffer, False otherwise.

Returns whether the configured frame buffer has accumulation buffer.