-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | GLFW OpenGL context creation for GPipe -- -- A utility library to enable the use of GLFW as the OpenGL window and -- context handler for GPipe. GPipe is a typesafe functional API based on -- the conceptual model of OpenGL, but without the imperative state -- machine. See the GPipe package and resources for more information. @package GPipe-GLFW @version 1.0 module Graphics.GPipe.Context.GLFW -- | The context factory which facilitates use of GLFW with GPipe. newContext :: ContextFactory c ds GLFWWindow -- | An opaque value representing a GLFW OpenGL context window. data GLFWWindow getCursorPos :: MonadIO m => ContextT GLFWWindow os f m (Double, Double) getMouseButton :: MonadIO m => MouseButton -> ContextT GLFWWindow os f m MouseButtonState getKey :: MonadIO m => Key -> ContextT GLFWWindow os f m KeyState windowShouldClose :: MonadIO m => ContextT GLFWWindow os f m Bool data MouseButtonState :: * [MouseButtonState'Pressed] :: MouseButtonState [MouseButtonState'Released] :: MouseButtonState data MouseButton :: * [MouseButton'1] :: MouseButton [MouseButton'2] :: MouseButton [MouseButton'3] :: MouseButton [MouseButton'4] :: MouseButton [MouseButton'5] :: MouseButton [MouseButton'6] :: MouseButton [MouseButton'7] :: MouseButton [MouseButton'8] :: MouseButton data KeyState :: * [KeyState'Pressed] :: KeyState [KeyState'Released] :: KeyState [KeyState'Repeating] :: KeyState data Key :: * [Key'Unknown] :: Key [Key'Space] :: Key [Key'Apostrophe] :: Key [Key'Comma] :: Key [Key'Minus] :: Key [Key'Period] :: Key [Key'Slash] :: Key [Key'0] :: Key [Key'1] :: Key [Key'2] :: Key [Key'3] :: Key [Key'4] :: Key [Key'5] :: Key [Key'6] :: Key [Key'7] :: Key [Key'8] :: Key [Key'9] :: Key [Key'Semicolon] :: Key [Key'Equal] :: Key [Key'A] :: Key [Key'B] :: Key [Key'C] :: Key [Key'D] :: Key [Key'E] :: Key [Key'F] :: Key [Key'G] :: Key [Key'H] :: Key [Key'I] :: Key [Key'J] :: Key [Key'K] :: Key [Key'L] :: Key [Key'M] :: Key [Key'N] :: Key [Key'O] :: Key [Key'P] :: Key [Key'Q] :: Key [Key'R] :: Key [Key'S] :: Key [Key'T] :: Key [Key'U] :: Key [Key'V] :: Key [Key'W] :: Key [Key'X] :: Key [Key'Y] :: Key [Key'Z] :: Key [Key'LeftBracket] :: Key [Key'Backslash] :: Key [Key'RightBracket] :: Key [Key'GraveAccent] :: Key [Key'World1] :: Key [Key'World2] :: Key [Key'Escape] :: Key [Key'Enter] :: Key [Key'Tab] :: Key [Key'Backspace] :: Key [Key'Insert] :: Key [Key'Delete] :: Key [Key'Right] :: Key [Key'Left] :: Key [Key'Down] :: Key [Key'Up] :: Key [Key'PageUp] :: Key [Key'PageDown] :: Key [Key'Home] :: Key [Key'End] :: Key [Key'CapsLock] :: Key [Key'ScrollLock] :: Key [Key'NumLock] :: Key [Key'PrintScreen] :: Key [Key'Pause] :: Key [Key'F1] :: Key [Key'F2] :: Key [Key'F3] :: Key [Key'F4] :: Key [Key'F5] :: Key [Key'F6] :: Key [Key'F7] :: Key [Key'F8] :: Key [Key'F9] :: Key [Key'F10] :: Key [Key'F11] :: Key [Key'F12] :: Key [Key'F13] :: Key [Key'F14] :: Key [Key'F15] :: Key [Key'F16] :: Key [Key'F17] :: Key [Key'F18] :: Key [Key'F19] :: Key [Key'F20] :: Key [Key'F21] :: Key [Key'F22] :: Key [Key'F23] :: Key [Key'F24] :: Key [Key'F25] :: Key [Key'Pad0] :: Key [Key'Pad1] :: Key [Key'Pad2] :: Key [Key'Pad3] :: Key [Key'Pad4] :: Key [Key'Pad5] :: Key [Key'Pad6] :: Key [Key'Pad7] :: Key [Key'Pad8] :: Key [Key'Pad9] :: Key [Key'PadDecimal] :: Key [Key'PadDivide] :: Key [Key'PadMultiply] :: Key [Key'PadSubtract] :: Key [Key'PadAdd] :: Key [Key'PadEnter] :: Key [Key'PadEqual] :: Key [Key'LeftShift] :: Key [Key'LeftControl] :: Key [Key'LeftAlt] :: Key [Key'LeftSuper] :: Key [Key'RightShift] :: Key [Key'RightControl] :: Key [Key'RightAlt] :: Key [Key'RightSuper] :: Key [Key'Menu] :: Key