Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | Safe-Infered |
Graphics.UI.Gtk.OpenGL.Config
Contents
Description
OpenGL frame buffer configuration object
- data GLConfig
- class GObjectClass o => GLConfigClass o
- castToGLConfig :: GObjectClass obj => obj -> GLConfig
- toGLConfig :: GLConfigClass o => o -> GLConfig
- data GLConfigMode
- glConfigNew :: [GLConfigMode] -> IO GLConfig
- glConfigNewForScreen :: Screen -> [GLConfigMode] -> IO GLConfig
- glConfigGetColormap :: GLConfig -> IO Colormap
- glConfigGetLayerPlane :: GLConfig -> IO Int
- glConfigGetNAuxBuffers :: GLConfig -> IO Int
- glConfigGetNSampleBuffers :: GLConfig -> IO Int
- glConfigIsRgba :: GLConfig -> IO Bool
- glConfigIsDoubleBuffered :: GLConfig -> IO Bool
- glConfigIsStereo :: GLConfig -> IO Bool
- glConfigHasAlpha :: GLConfig -> IO Bool
- glConfigHasDepthBuffer :: GLConfig -> IO Bool
- glConfigHasStencilBuffer :: GLConfig -> IO Bool
- glConfigHasAccumBuffer :: GLConfig -> IO Bool
- glConfigGetScreen :: GLConfig -> IO Screen
- glConfigGetDepth :: GLConfig -> IO Int
Types
data GLConfig
Instances
class GObjectClass o => GLConfigClass o
Instances
castToGLConfig :: GObjectClass obj => obj -> GLConfig
toGLConfig :: GLConfigClass o => o -> GLConfig
data GLConfigMode
Constructors
Arguments
:: [GLConfigMode] |
|
-> IO GLConfig |
Returns an OpenGL frame buffer configuration that match the specified display mode.
Arguments
:: Screen |
|
-> [GLConfigMode] |
|
-> IO GLConfig |
Returns an OpenGL frame buffer configuration that matchs the specified display mode.
Methods
Gets the Colormap
that is appropriate for the OpenGL frame buffer
configuration.
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.
Gets the number of auxiliary color buffers.
Gets the number of multisample buffers.
Arguments
:: GLConfig | |
-> IO Bool | returns |
Returns whether the configured frame buffer is RGBA mode.
Arguments
:: GLConfig | |
-> IO Bool | returns |
Returns whether the configuration supports the double-buffered visual.
Returns whether the configuration supports the stereo visual.
Returns whether the configured color buffer has alpha bits.
Returns whether the configured frame buffer has depth buffer.
Arguments
:: GLConfig | |
-> IO Bool | returns |
Returns whether the configured frame buffer has stencil buffer.
Arguments
:: GLConfig | |
-> IO Bool | returns |
Returns whether the configured frame buffer has accumulation buffer.
Gets the color depth of the OpenGL-capable visual.