Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
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
class GObjectClass o => GLConfigClass o Source
castToGLConfig :: GObjectClass obj => obj -> GLConfigSource
toGLConfig :: GLConfigClass o => o -> GLConfigSource
data GLConfigMode Source
Constructors
:: [GLConfigMode] |
|
-> IO GLConfig |
Returns an OpenGL frame buffer configuration that match the specified display mode.
:: 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.
glConfigGetNSampleBuffersSource
Gets the number of multisample buffers.
Returns whether the configured frame buffer is RGBA mode.
glConfigIsDoubleBufferedSource
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.
glConfigHasStencilBufferSource
Returns whether the configured frame buffer has stencil buffer.
Returns whether the configured frame buffer has accumulation buffer.
Gets the color depth of the OpenGL-capable visual.