Safe Haskell | None |
---|---|
Language | Haskell2010 |
Miscellaneous utilities for dealing with OpenGL errors.
Synopsis
- printError :: IO ()
- printErrorMsg :: String -> IO ()
- throwError :: IO ()
- data GLError
- throwErrorMsg :: String -> IO ()
Documentation
printError :: IO () Source #
Check OpenGL error flags and print them on stderr
.
printErrorMsg :: String -> IO () Source #
Check OpenGL error flags and print them on stderr
with the given
message as a prefix. If there are no errors, nothing is printed.
throwError :: IO () Source #
Throw an exception if there is an OpenGL error.
An exception type for OpenGL errors.
Instances
Show GLError Source # | |
Exception GLError Source # | |
Defined in Graphics.GLUtil.GLError toException :: GLError -> SomeException # fromException :: SomeException -> Maybe GLError # displayException :: GLError -> String # |