@@ -53,6 +53,7 @@ import Control.Applicative
5353-- { 'glColorPrecision' = V4 8 8 8 0
5454-- , 'glDepthPrecision' = 24
5555-- , 'glStencilPrecision' = 8
56+ -- , 'glMultisampleSamples' = 1
5657-- , 'glProfile' = 'Compatibility' 'Normal' 2 1
5758-- }
5859-- @
@@ -61,15 +62,17 @@ defaultOpenGL = OpenGLConfig
6162 { glColorPrecision = V4 8 8 8 0
6263 , glDepthPrecision = 24
6364 , glStencilPrecision = 8
65+ , glMultisampleSamples = 1
6466 , glProfile = Compatibility Normal 2 1
6567 }
6668
6769-- | Configuration used when creating an OpenGL rendering context.
6870data OpenGLConfig = OpenGLConfig
69- { glColorPrecision :: V4 CInt -- ^ Defaults to 'V4' @8 8 8 0@.
70- , glDepthPrecision :: CInt -- ^ Defaults to @24@.
71- , glStencilPrecision :: CInt -- ^ Defaults to @8@.
72- , glProfile :: Profile -- ^ Defaults to 'Compatibility' 'Normal' @2 1@.
71+ { glColorPrecision :: V4 CInt -- ^ Defaults to 'V4' @8 8 8 0@.
72+ , glDepthPrecision :: CInt -- ^ Defaults to @24@.
73+ , glStencilPrecision :: CInt -- ^ Defaults to @8@.
74+ , glMultisampleSamples :: CInt -- ^ Defaults to @1@.
75+ , glProfile :: Profile -- ^ Defaults to 'Compatibility' 'Normal' @2 1@.
7376 } deriving (Eq , Generic , Ord , Read , Show , Typeable )
7477
7578-- | The profile a driver should use when creating an OpenGL context.
0 commit comments