Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell2010 |
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 -> GLConfig Source #
toGLConfig :: GLConfigClass o => o -> GLConfig Source #
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.
glConfigGetLayerPlane Source #
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.
glConfigGetNAuxBuffers Source #
Gets the number of auxiliary color buffers.
glConfigGetNSampleBuffers Source #
Gets the number of multisample buffers.
Returns whether the configured frame buffer is RGBA mode.
glConfigIsDoubleBuffered Source #
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.
glConfigHasDepthBuffer Source #
Returns whether the configured frame buffer has depth buffer.
glConfigHasStencilBuffer Source #
Returns whether the configured frame buffer has stencil buffer.
glConfigHasAccumBuffer Source #
Returns whether the configured frame buffer has accumulation buffer.