glfw-group-0.1.0.0: GLFW package with window groups destroyed together
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.UI.GlfwG

Synopsis

Documentation

init :: (ErrorMessage -> IO a) -> IO a -> IO a Source #

pollEvents :: IO () #

Checks for any pending events, processes them, and then immediately returns. This is most useful for continual rendering, such as games. See the Event Processing Guide. This function is not reentrant.

waitEvents :: IO () #

Waits until at least one event is in the queue then processes the queue and returns. Requires at least one window to be active for it to sleep. This saves a lot of CPU, and is better if you're doing only periodic rendering, such as with an editor program. See the Event Processing Guide. This function is not reentrant.