|
|
|
|
|
| Description |
| This module provides an imp-frp interface to GLUT.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type Size = (Int, Int) |
|
| type Position = (Int, Int) |
|
| data Wheel |
| Constructors | | Instances | |
|
|
| data MouseButton |
| Constructors | | LeftButton | | | MiddleButton | | | RightButton | |
| Instances | |
|
|
| data Key |
| Constructors | | Instances | |
|
|
| type ButtonData = (Position, MouseButton, KeyState, Modifiers) |
|
| type KeyData = (Key, KeyState, Modifiers) |
|
| The fundamental GLUT input events. All the rest is built up from these.
|
|
| glutMouseMove :: Event Position |
|
| glutMouseDrag :: Event Position |
|
| glutMouseButton :: Event ButtonData |
|
| glutMouseWheel :: Event Wheel |
|
| glutKeyboard :: Event KeyData |
|
| glutResize :: Event Size |
|
| Convenience events
|
|
| glutMousePressed :: MouseButton -> Event (Position, Modifiers) |
|
| glutMouseReleased :: MouseButton -> Event (Position, Modifiers) |
|
| glutKeyPressed :: Key -> Event Modifiers |
|
| glutKeyReleased :: Key -> Event Modifiers |
|
| Reactive values
|
|
| glutMousePos :: Reactive Position |
|
| glutWindowSize :: Reactive Size |
|
| Real-world IO stuff
|
|
| runGLUT :: Event Action -> IO () |
|
| setWindowTitle :: String -> Action |
|
| globalExit :: Action |
| Terminates the program. Unfortunately, there is no clean way to exit
from GLUT... so this may be handy.
|
|
| Produced by Haddock version 2.4.1 |