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 section 2.5 (GL Errors) of the OpenGL 2.1 specs and chapter 8 (Errors) of the GLU specs, offering a generalized view of errors in GL and GLU.
Documentation
GL/GLU errors consist of a general error category and a description of what went wrong.
data ErrorCategory Source #
General GL/GLU error categories
ContextLost | |
InvalidEnum | |
InvalidValue | |
InvalidOperation | |
InvalidFramebufferOperation | |
OutOfMemory | |
StackOverflow | |
StackUnderflow | |
TableTooLarge | |
TesselatorError | |
NURBSError |
Instances
Eq ErrorCategory Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal (==) :: ErrorCategory -> ErrorCategory -> Bool # (/=) :: ErrorCategory -> ErrorCategory -> Bool # | |
Ord ErrorCategory Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal compare :: ErrorCategory -> ErrorCategory -> Ordering # (<) :: ErrorCategory -> ErrorCategory -> Bool # (<=) :: ErrorCategory -> ErrorCategory -> Bool # (>) :: ErrorCategory -> ErrorCategory -> Bool # (>=) :: ErrorCategory -> ErrorCategory -> Bool # max :: ErrorCategory -> ErrorCategory -> ErrorCategory # min :: ErrorCategory -> ErrorCategory -> ErrorCategory # | |
Show ErrorCategory Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal showsPrec :: Int -> ErrorCategory -> ShowS # show :: ErrorCategory -> String # showList :: [ErrorCategory] -> ShowS # |
errors :: GettableStateVar [Error] Source #
When an error occurs, it is recorded in this state variable and no further
errors are recorded. Reading errors
returns the currently recorded errors
(there may be more than one due to a possibly distributed implementation) and
resets the state variable to []
, re-enabling the recording of future
errors. The value []
means that there has been no detectable error since
the last time errors
was read, or since the GL was initialized.