GLUtil-0.10.4: Miscellaneous OpenGL utilities.
Safe HaskellNone
LanguageHaskell2010

Graphics.GLUtil.GLError

Description

Miscellaneous utilities for dealing with OpenGL errors.

Synopsis

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.

data GLError Source #

An exception type for OpenGL errors.

Instances

Instances details
Show GLError Source # 
Instance details

Defined in Graphics.GLUtil.GLError

Exception GLError Source # 
Instance details

Defined in Graphics.GLUtil.GLError

throwErrorMsg :: String -> IO () Source #

Throw an exception if there is an OpenGL error. The exception's error message is prefixed with the supplied String.