GLUtil-0.9.1.0: Miscellaneous OpenGL utilities.

Safe HaskellNone
LanguageHaskell98

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.

throwErrorMsg :: String -> IO () Source #

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