Safe Haskell | None |
---|
- initialize :: IO Bool
- terminate :: IO ()
- getVideoMode :: IO VideoMode
- getVideoModes :: IO [VideoMode]
- data VideoMode = VideoMode {}
- data OpenGLProfile
- openGLContextIsForwardCompatible :: IO Bool
- openGLContextIsDebugContext :: IO Bool
- openGLProfile :: IO OpenGLProfile
- openWindow :: DisplayOptions -> IO Bool
- closeWindow :: IO ()
- setWindowTitle :: String -> IO ()
- setWindowDimensions :: Int -> Int -> IO ()
- setWindowPosition :: Int -> Int -> IO ()
- iconifyWindow :: IO ()
- restoreWindow :: IO ()
- swapBuffers :: IO ()
- setWindowBufferSwapInterval :: Int -> IO ()
- data DisplayMode
- = Window
- | Fullscreen
- data DisplayOptions = DisplayOptions {
- displayOptions_width :: Int
- displayOptions_height :: Int
- displayOptions_numRedBits :: Int
- displayOptions_numGreenBits :: Int
- displayOptions_numBlueBits :: Int
- displayOptions_numAlphaBits :: Int
- displayOptions_numDepthBits :: Int
- displayOptions_numStencilBits :: Int
- displayOptions_displayMode :: DisplayMode
- displayOptions_refreshRate :: Maybe Int
- displayOptions_accumNumRedBits :: Maybe Int
- displayOptions_accumNumGreenBits :: Maybe Int
- displayOptions_accumNumBlueBits :: Maybe Int
- displayOptions_accumNumAlphaBits :: Maybe Int
- displayOptions_numAuxiliaryBuffers :: Maybe Int
- displayOptions_numFsaaSamples :: Maybe Int
- displayOptions_windowIsResizable :: Bool
- displayOptions_stereoRendering :: Bool
- displayOptions_openGLVersion :: (Int, Int)
- displayOptions_openGLForwardCompatible :: Bool
- displayOptions_openGLDebugContext :: Bool
- displayOptions_openGLProfile :: OpenGLProfile
- defaultDisplayOptions :: DisplayOptions
- windowIsOpen :: IO Bool
- windowIsActive :: IO Bool
- windowIsIconified :: IO Bool
- windowIsResizable :: IO Bool
- windowIsHardwareAccelerated :: IO Bool
- windowSupportsStereoRendering :: IO Bool
- getWindowRefreshRate :: IO Int
- getWindowDimensions :: IO (Int, Int)
- getWindowValue :: WindowValue -> IO Int
- setWindowCloseCallback :: WindowCloseCallback -> IO ()
- setWindowSizeCallback :: WindowSizeCallback -> IO ()
- setWindowRefreshCallback :: WindowRefreshCallback -> IO ()
- data WindowValue
- type WindowCloseCallback = IO Bool
- type WindowSizeCallback = Int -> Int -> IO ()
- type WindowRefreshCallback = IO ()
- pollEvents :: IO ()
- waitEvents :: IO ()
- enableAutoPoll :: IO ()
- enableKeyRepeat :: IO ()
- disableKeyRepeat :: IO ()
- disableAutoPoll :: IO ()
- keyIsPressed :: Key -> IO Bool
- setCharCallback :: CharCallback -> IO ()
- setKeyCallback :: KeyCallback -> IO ()
- data Key
- = CharKey Char
- | KeyUnknown
- | KeySpace
- | KeySpecial
- | KeyEsc
- | KeyF1
- | KeyF2
- | KeyF3
- | KeyF4
- | KeyF5
- | KeyF6
- | KeyF7
- | KeyF8
- | KeyF9
- | KeyF10
- | KeyF11
- | KeyF12
- | KeyF13
- | KeyF14
- | KeyF15
- | KeyF16
- | KeyF17
- | KeyF18
- | KeyF19
- | KeyF20
- | KeyF21
- | KeyF22
- | KeyF23
- | KeyF24
- | KeyF25
- | KeyUp
- | KeyDown
- | KeyLeft
- | KeyRight
- | KeyLeftShift
- | KeyRightShift
- | KeyLeftCtrl
- | KeyRightCtrl
- | KeyLeftAlt
- | KeyRightAlt
- | KeyTab
- | KeyEnter
- | KeyBackspace
- | KeyInsert
- | KeyDel
- | KeyPageup
- | KeyPagedown
- | KeyHome
- | KeyEnd
- | KeyPad0
- | KeyPad1
- | KeyPad2
- | KeyPad3
- | KeyPad4
- | KeyPad5
- | KeyPad6
- | KeyPad7
- | KeyPad8
- | KeyPad9
- | KeyPadDivide
- | KeyPadMultiply
- | KeyPadSubtract
- | KeyPadAdd
- | KeyPadDecimal
- | KeyPadEqual
- | KeyPadEnter
- type CharCallback = Char -> Bool -> IO ()
- type KeyCallback = Key -> Bool -> IO ()
- mouseButtonIsPressed :: MouseButton -> IO Bool
- getMousePosition :: IO (Int, Int)
- getMouseWheel :: IO Int
- setMousePosition :: Int -> Int -> IO ()
- setMouseWheel :: Int -> IO ()
- setMouseButtonCallback :: MouseButtonCallback -> IO ()
- setMousePositionCallback :: MousePositionCallback -> IO ()
- setMouseWheelCallback :: MouseWheelCallback -> IO ()
- enableMouseCursor :: IO ()
- disableMouseCursor :: IO ()
- data MouseButton
- type MouseButtonCallback = MouseButton -> Bool -> IO ()
- type MousePositionCallback = Int -> Int -> IO ()
- type MouseWheelCallback = Int -> IO ()
- joystickIsPresent :: Joystick -> IO Bool
- getJoystickPosition :: Joystick -> Int -> IO [Float]
- getNumJoystickAxes :: Joystick -> IO Int
- getNumJoystickButtons :: Joystick -> IO Int
- joystickButtonsArePressed :: Joystick -> Int -> IO [Bool]
- data Joystick
- = Joystick0
- | Joystick1
- | Joystick2
- | Joystick3
- | Joystick4
- | Joystick5
- | Joystick6
- | Joystick7
- | Joystick8
- | Joystick9
- | Joystick10
- | Joystick11
- | Joystick12
- | Joystick13
- | Joystick14
- | Joystick15
- getTime :: IO Double
- setTime :: Double -> IO ()
- resetTime :: IO ()
- sleep :: Double -> IO ()
- getGlfwVersion :: IO Version
- getGlVersion :: IO Version
Initialization and termination
Video mode information
OpenGL context
data OpenGLProfile Source
Information
Windows
Management
openWindow :: DisplayOptions -> IO BoolSource
closeWindow :: IO ()Source
setWindowTitle :: String -> IO ()Source
setWindowDimensions :: Int -> Int -> IO ()Source
setWindowPosition :: Int -> Int -> IO ()Source
iconifyWindow :: IO ()Source
restoreWindow :: IO ()Source
swapBuffers :: IO ()Source
setWindowBufferSwapInterval :: Int -> IO ()Source
data DisplayMode Source
data DisplayOptions Source
Information
getWindowDimensions :: IO (Int, Int)Source
getWindowValue :: WindowValue -> IO IntSource
data WindowValue Source
type WindowCloseCallback = IO BoolSource
type WindowSizeCallback = Int -> Int -> IO ()Source
type WindowRefreshCallback = IO ()Source
Input
pollEvents :: IO ()Source
waitEvents :: IO ()Source
enableAutoPoll :: IO ()Source
enableKeyRepeat :: IO ()Source
disableKeyRepeat :: IO ()Source
disableAutoPoll :: IO ()Source
Keyboard
keyIsPressed :: Key -> IO BoolSource
setCharCallback :: CharCallback -> IO ()Source
setKeyCallback :: KeyCallback -> IO ()Source
type CharCallback = Char -> Bool -> IO ()Source
type KeyCallback = Key -> Bool -> IO ()Source
Mouse
getMousePosition :: IO (Int, Int)Source
setMousePosition :: Int -> Int -> IO ()Source
setMouseWheel :: Int -> IO ()Source
enableMouseCursor :: IO ()Source
Make the mouse cursor visible.
disableMouseCursor :: IO ()Source
Make the mouse cursor invisible.
data MouseButton Source
type MouseButtonCallback = MouseButton -> Bool -> IO ()Source
type MousePositionCallback = Int -> Int -> IO ()Source
type MouseWheelCallback = Int -> IO ()Source