Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- initWindow :: Int -> Int -> String -> IO WindowResources
- windowShouldClose :: IO Bool
- closeWindow :: WindowResources -> IO ()
- isWindowReady :: IO Bool
- isWindowFullscreen :: IO Bool
- isWindowHidden :: IO Bool
- isWindowMinimized :: IO Bool
- isWindowMaximized :: IO Bool
- isWindowFocused :: IO Bool
- isWindowResized :: IO Bool
- isWindowState :: [ConfigFlag] -> IO Bool
- setWindowState :: [ConfigFlag] -> IO ()
- clearWindowState :: [ConfigFlag] -> IO ()
- toggleFullscreen :: IO ()
- maximizeWindow :: IO ()
- minimizeWindow :: IO ()
- restoreWindow :: IO ()
- setWindowIcon :: Image -> IO ()
- setWindowIcons :: [Image] -> IO ()
- setWindowTitle :: String -> IO ()
- setWindowPosition :: Int -> Int -> IO ()
- setWindowMonitor :: Int -> IO ()
- setWindowMinSize :: Int -> Int -> IO ()
- setWindowSize :: Int -> Int -> IO ()
- setWindowOpacity :: Float -> IO ()
- setWindowFocused :: IO ()
- getWindowHandle :: IO (Ptr ())
- getScreenWidth :: IO Int
- getScreenHeight :: IO Int
- getRenderWidth :: IO Int
- getRenderHeight :: IO Int
- getMonitorCount :: IO Int
- getCurrentMonitor :: IO Int
- getMonitorPosition :: Int -> IO Vector2
- getMonitorWidth :: Int -> IO Int
- getMonitorHeight :: Int -> IO Int
- getMonitorPhysicalWidth :: Int -> IO Int
- getMonitorPhysicalHeight :: Int -> IO Int
- getMonitorRefreshRate :: Int -> IO Int
- getWindowPosition :: IO Vector2
- getWindowScaleDPI :: IO Vector2
- getMonitorName :: Int -> IO String
- setClipboardText :: String -> IO ()
- getClipboardText :: IO String
- enableEventWaiting :: IO ()
- disableEventWaiting :: IO ()
- swapScreenBuffer :: IO ()
- pollInputEvents :: IO ()
- waitTime :: Double -> IO ()
- showCursor :: IO ()
- hideCursor :: IO ()
- isCursorHidden :: IO Bool
- enableCursor :: IO ()
- disableCursor :: IO ()
- isCursorOnScreen :: IO Bool
- clearBackground :: Color -> IO ()
- beginDrawing :: IO ()
- endDrawing :: IO ()
- beginMode2D :: Camera2D -> IO ()
- endMode2D :: IO ()
- beginMode3D :: Camera3D -> IO ()
- endMode3D :: IO ()
- beginTextureMode :: RenderTexture -> IO ()
- endTextureMode :: IO ()
- beginShaderMode :: Shader -> IO ()
- endShaderMode :: IO ()
- beginBlendMode :: BlendMode -> IO ()
- endBlendMode :: IO ()
- beginScissorMode :: Int -> Int -> Int -> Int -> IO ()
- endScissorMode :: IO ()
- beginVrStereoMode :: VrStereoConfig -> IO ()
- endVrStereoMode :: IO ()
- loadVrStereoConfig :: VrDeviceInfo -> IO VrStereoConfig
- loadShader :: Maybe String -> Maybe String -> WindowResources -> IO Shader
- loadShaderFromMemory :: Maybe String -> Maybe String -> WindowResources -> IO Shader
- isShaderReady :: Shader -> IO Bool
- getShaderLocation :: Shader -> String -> WindowResources -> IO Int
- getShaderLocationAttrib :: Shader -> String -> IO Int
- setShaderValue :: Shader -> String -> ShaderUniformData -> WindowResources -> IO ()
- setShaderValueV :: Shader -> String -> ShaderUniformDataV -> WindowResources -> IO ()
- nativeSetShaderValue :: Shader -> Int -> ShaderUniformData -> IO ()
- nativeSetShaderValueV :: Shader -> Int -> ShaderUniformDataV -> IO ()
- setShaderValueMatrix :: Shader -> Int -> Matrix -> IO ()
- setShaderValueTexture :: Shader -> Int -> Texture -> IO ()
- unloadShader :: Shader -> WindowResources -> IO ()
- getMouseRay :: Vector2 -> Camera3D -> IO Ray
- getCameraMatrix :: Camera3D -> IO Matrix
- getCameraMatrix2D :: Camera2D -> IO Matrix
- getWorldToScreen :: Vector3 -> Camera3D -> IO Vector2
- getScreenToWorld2D :: Vector2 -> Camera2D -> IO Vector2
- getWorldToScreenEx :: Vector3 -> Camera3D -> Int -> Int -> IO Vector2
- getWorldToScreen2D :: Vector2 -> Camera2D -> IO Vector2
- setTargetFPS :: Int -> IO ()
- getFPS :: IO Int
- getFrameTime :: IO Float
- getTime :: IO Double
- getRandomValue :: Int -> Int -> IO Int
- setRandomSeed :: Integer -> IO ()
- takeScreenshot :: String -> IO ()
- setConfigFlags :: [ConfigFlag] -> IO ()
- traceLog :: TraceLogLevel -> String -> IO ()
- setTraceLogLevel :: TraceLogLevel -> IO ()
- openURL :: String -> IO ()
- setLoadFileDataCallback :: LoadFileDataCallback -> IO ()
- setSaveFileDataCallback :: SaveFileDataCallback -> IO ()
- setLoadFileTextCallback :: LoadFileTextCallback -> IO ()
- setSaveFileTextCallback :: SaveFileTextCallback -> IO ()
- loadFileData :: String -> IO [Integer]
- saveFileData :: Storable a => String -> Ptr a -> Integer -> IO Bool
- exportDataAsCode :: [Integer] -> Integer -> String -> IO Bool
- loadFileText :: String -> IO String
- saveFileText :: String -> String -> IO Bool
- fileExists :: String -> IO Bool
- directoryExists :: String -> IO Bool
- isFileExtension :: String -> String -> IO Bool
- getFileLength :: String -> IO Bool
- getFileExtension :: String -> IO String
- getFileName :: String -> IO String
- getFileNameWithoutExt :: String -> IO String
- getDirectoryPath :: String -> IO String
- getPrevDirectoryPath :: String -> IO String
- getWorkingDirectory :: IO String
- getApplicationDirectory :: IO String
- changeDirectory :: String -> IO Bool
- isPathFile :: String -> IO Bool
- loadDirectoryFiles :: String -> IO FilePathList
- loadDirectoryFilesEx :: String -> String -> Bool -> IO FilePathList
- isFileDropped :: IO Bool
- loadDroppedFiles :: IO FilePathList
- getFileModTime :: String -> IO Integer
- compressData :: [Integer] -> IO [Integer]
- decompressData :: [Integer] -> IO [Integer]
- encodeDataBase64 :: [Integer] -> IO [Integer]
- decodeDataBase64 :: [Integer] -> IO [Integer]
- isKeyPressed :: KeyboardKey -> IO Bool
- isKeyDown :: KeyboardKey -> IO Bool
- isKeyReleased :: KeyboardKey -> IO Bool
- isKeyUp :: KeyboardKey -> IO Bool
- setExitKey :: KeyboardKey -> IO ()
- getKeyPressed :: IO KeyboardKey
- getCharPressed :: IO Int
- isGamepadAvailable :: Int -> IO Bool
- getGamepadName :: Int -> IO String
- isGamepadButtonPressed :: Int -> GamepadButton -> IO Bool
- isGamepadButtonDown :: Int -> GamepadButton -> IO Bool
- isGamepadButtonReleased :: Int -> GamepadButton -> IO Bool
- isGamepadButtonUp :: Int -> GamepadButton -> IO Bool
- getGamepadButtonPressed :: IO GamepadButton
- getGamepadAxisCount :: Int -> IO Int
- getGamepadAxisMovement :: Int -> GamepadAxis -> IO Float
- setGamepadMappings :: String -> IO Int
- isMouseButtonPressed :: MouseButton -> IO Bool
- isMouseButtonDown :: MouseButton -> IO Bool
- isMouseButtonReleased :: MouseButton -> IO Bool
- isMouseButtonUp :: MouseButton -> IO Bool
- getMouseX :: IO Int
- getMouseY :: IO Int
- getMousePosition :: IO Vector2
- getMouseDelta :: IO Vector2
- setMousePosition :: Int -> Int -> IO ()
- setMouseOffset :: Int -> Int -> IO ()
- setMouseScale :: Float -> Float -> IO ()
- getMouseWheelMove :: IO Float
- getMouseWheelMoveV :: IO Vector2
- setMouseCursor :: MouseCursor -> IO ()
- getTouchX :: IO Int
- getTouchY :: IO Int
- getTouchPosition :: Int -> IO Vector2
- getTouchPointId :: Int -> IO Int
- getTouchPointCount :: IO Int
- setGesturesEnabled :: [Gesture] -> IO ()
- isGestureDetected :: Gesture -> IO Bool
- getGestureDetected :: IO Gesture
- getGestureHoldDuration :: IO Float
- getGestureDragVector :: IO Vector2
- getGestureDragAngle :: IO Float
- getGesturePinchVector :: IO Vector2
- getGesturePinchAngle :: IO Float
Documentation
initWindow :: Int -> Int -> String -> IO WindowResources Source #
closeWindow :: WindowResources -> IO () Source #
isWindowReady :: IO Bool Source #
isWindowHidden :: IO Bool Source #
isWindowFocused :: IO Bool Source #
isWindowResized :: IO Bool Source #
isWindowState :: [ConfigFlag] -> IO Bool Source #
setWindowState :: [ConfigFlag] -> IO () Source #
clearWindowState :: [ConfigFlag] -> IO () Source #
toggleFullscreen :: IO () Source #
maximizeWindow :: IO () Source #
minimizeWindow :: IO () Source #
restoreWindow :: IO () Source #
setWindowIcon :: Image -> IO () Source #
setWindowIcons :: [Image] -> IO () Source #
setWindowTitle :: String -> IO () Source #
setWindowMonitor :: Int -> IO () Source #
setWindowOpacity :: Float -> IO () Source #
setWindowFocused :: IO () Source #
getWindowHandle :: IO (Ptr ()) Source #
getScreenWidth :: IO Int Source #
getScreenHeight :: IO Int Source #
getRenderWidth :: IO Int Source #
getRenderHeight :: IO Int Source #
getMonitorCount :: IO Int Source #
setClipboardText :: String -> IO () Source #
enableEventWaiting :: IO () Source #
disableEventWaiting :: IO () Source #
swapScreenBuffer :: IO () Source #
pollInputEvents :: IO () Source #
showCursor :: IO () Source #
hideCursor :: IO () Source #
isCursorHidden :: IO Bool Source #
enableCursor :: IO () Source #
disableCursor :: IO () Source #
clearBackground :: Color -> IO () Source #
beginDrawing :: IO () Source #
endDrawing :: IO () Source #
beginMode2D :: Camera2D -> IO () Source #
beginMode3D :: Camera3D -> IO () Source #
beginTextureMode :: RenderTexture -> IO () Source #
endTextureMode :: IO () Source #
beginShaderMode :: Shader -> IO () Source #
endShaderMode :: IO () Source #
beginBlendMode :: BlendMode -> IO () Source #
endBlendMode :: IO () Source #
endScissorMode :: IO () Source #
beginVrStereoMode :: VrStereoConfig -> IO () Source #
endVrStereoMode :: IO () Source #
loadShader :: Maybe String -> Maybe String -> WindowResources -> IO Shader Source #
loadShaderFromMemory :: Maybe String -> Maybe String -> WindowResources -> IO Shader Source #
getShaderLocation :: Shader -> String -> WindowResources -> IO Int Source #
setShaderValue :: Shader -> String -> ShaderUniformData -> WindowResources -> IO () Source #
setShaderValueV :: Shader -> String -> ShaderUniformDataV -> WindowResources -> IO () Source #
nativeSetShaderValue :: Shader -> Int -> ShaderUniformData -> IO () Source #
nativeSetShaderValueV :: Shader -> Int -> ShaderUniformDataV -> IO () Source #
unloadShader :: Shader -> WindowResources -> IO () Source #
Unloads a shader from GPU memory (VRAM). Shaders are automatically unloaded
when closeWindow
is called, so manually unloading shaders is not required.
In larger projects, you may want to manually unload shaders to avoid having
them in VRAM for too long.
setTargetFPS :: Int -> IO () Source #
getFrameTime :: IO Float Source #
setRandomSeed :: Integer -> IO () Source #
takeScreenshot :: String -> IO () Source #
setConfigFlags :: [ConfigFlag] -> IO () Source #
setTraceLogLevel :: TraceLogLevel -> IO () Source #
setLoadFileDataCallback :: LoadFileDataCallback -> IO () Source #
setSaveFileDataCallback :: SaveFileDataCallback -> IO () Source #
setLoadFileTextCallback :: LoadFileTextCallback -> IO () Source #
setSaveFileTextCallback :: SaveFileTextCallback -> IO () Source #
loadDirectoryFilesEx :: String -> String -> Bool -> IO FilePathList Source #
isFileDropped :: IO Bool Source #
isKeyPressed :: KeyboardKey -> IO Bool Source #
isKeyReleased :: KeyboardKey -> IO Bool Source #
setExitKey :: KeyboardKey -> IO () Source #
getCharPressed :: IO Int Source #
isGamepadButtonPressed :: Int -> GamepadButton -> IO Bool Source #
isGamepadButtonDown :: Int -> GamepadButton -> IO Bool Source #
isGamepadButtonReleased :: Int -> GamepadButton -> IO Bool Source #
isGamepadButtonUp :: Int -> GamepadButton -> IO Bool Source #
getGamepadAxisMovement :: Int -> GamepadAxis -> IO Float Source #
isMouseButtonPressed :: MouseButton -> IO Bool Source #
isMouseButtonDown :: MouseButton -> IO Bool Source #
isMouseButtonUp :: MouseButton -> IO Bool Source #
setMouseCursor :: MouseCursor -> IO () Source #
setGesturesEnabled :: [Gesture] -> IO () Source #