Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to parts of section 6.1.5 (String Queries) of the OpenGL 3.2 specs.
Synopsis
- vendor :: GettableStateVar String
- renderer :: GettableStateVar String
- glVersion :: GettableStateVar String
- glExtensions :: GettableStateVar [String]
- extensionSupported :: String -> GettableStateVar Bool
- shadingLanguageVersion :: GettableStateVar String
- majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int)
- data ContextProfile'
- contextProfile :: GettableStateVar [ContextProfile']
Documentation
majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int) Source #
A utility function to be used with e.g. glVersion
or
shadingLanguageVersion
, transforming a variable containing a string of the
form major.minor[optional rest] into a variable containing a numeric
major/minor version. If the string is malformed, which should never happen
with a sane OpenGL implementation, it is transformed to (-1,-1)
.
data ContextProfile' Source #
Instances
Eq ContextProfile' Source # | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries (==) :: ContextProfile' -> ContextProfile' -> Bool # (/=) :: ContextProfile' -> ContextProfile' -> Bool # | |
Ord ContextProfile' Source # | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries compare :: ContextProfile' -> ContextProfile' -> Ordering # (<) :: ContextProfile' -> ContextProfile' -> Bool # (<=) :: ContextProfile' -> ContextProfile' -> Bool # (>) :: ContextProfile' -> ContextProfile' -> Bool # (>=) :: ContextProfile' -> ContextProfile' -> Bool # max :: ContextProfile' -> ContextProfile' -> ContextProfile' # min :: ContextProfile' -> ContextProfile' -> ContextProfile' # | |
Show ContextProfile' Source # | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries showsPrec :: Int -> ContextProfile' -> ShowS # show :: ContextProfile' -> String # showList :: [ContextProfile'] -> ShowS # |