GLUtil-0.8.6: 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.

data GLError Source

An exception type for OpenGL errors.

throwErrorMsg :: String -> IO () Source

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