Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings to rcore
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 ()
- toggleBorderlessWindowed :: 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 ()
- setWindowMaxSize :: 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 ()
- getScreenToWorldRay :: Vector2 -> Camera3D -> IO Ray
- getScreenToWorldRayEx :: Vector2 -> Camera3D -> Float -> Float -> Ray
- getCameraMatrix :: Camera3D -> Matrix
- getCameraMatrix2D :: Camera2D -> Matrix
- getWorldToScreen :: Vector3 -> Camera3D -> IO Vector2
- getWorldToScreenEx :: Vector3 -> Camera3D -> Int -> Int -> Vector2
- getWorldToScreen2D :: Vector2 -> Camera2D -> Vector2
- getScreenToWorld2D :: Vector2 -> Camera2D -> Vector2
- setTargetFPS :: Int -> IO ()
- getFPS :: IO Int
- getFrameTime :: IO Float
- getTime :: IO Double
- setRandomSeed :: Integer -> IO ()
- getRandomValue :: Int -> Int -> IO Int
- loadRandomSequence :: Integer -> Int -> Int -> IO [Int]
- takeScreenshot :: String -> IO ()
- setConfigFlags :: [ConfigFlag] -> IO ()
- traceLog :: TraceLogLevel -> String -> IO ()
- setTraceLogLevel :: TraceLogLevel -> IO ()
- openURL :: String -> IO ()
- setLoadFileDataCallback :: LoadFileDataCallback -> WindowResources -> IO C'LoadFileDataCallback
- setSaveFileDataCallback :: Storable a => SaveFileDataCallback a -> WindowResources -> IO C'SaveFileDataCallback
- setLoadFileTextCallback :: LoadFileTextCallback -> WindowResources -> IO C'LoadFileTextCallback
- setSaveFileTextCallback :: SaveFileTextCallback -> WindowResources -> IO C'SaveFileTextCallback
- 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]
- loadAutomationEventList :: String -> IO AutomationEventList
- newAutomationEventList :: IO AutomationEventList
- exportAutomationEventList :: AutomationEventList -> String -> IO Bool
- setAutomationEventList :: AutomationEventList -> WindowResources -> IO AutomationEventListRef
- setAutomationEventBaseFrame :: Int -> IO ()
- startAutomationEventRecording :: IO ()
- stopAutomationEventRecording :: IO ()
- playAutomationEvent :: AutomationEvent -> IO ()
- peekAutomationEventList :: AutomationEventListRef -> IO AutomationEventList
- freeAutomationEventList :: AutomationEventListRef -> WindowResources -> IO ()
- isKeyPressed :: KeyboardKey -> IO Bool
- isKeyPressedRepeat :: 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
- setGamepadVibration :: Int -> Float -> Float -> IO ()
- 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
- c'initWindow :: CInt -> CInt -> CString -> IO ()
- c'windowShouldClose :: IO CBool
- c'closeWindow :: IO ()
- c'isWindowReady :: IO CBool
- c'isWindowFullscreen :: IO CBool
- c'isWindowHidden :: IO CBool
- c'isWindowMinimized :: IO CBool
- c'isWindowMaximized :: IO CBool
- c'isWindowFocused :: IO CBool
- c'isWindowResized :: IO CBool
- c'isWindowState :: CUInt -> IO CBool
- c'setWindowState :: CUInt -> IO ()
- c'clearWindowState :: CUInt -> IO ()
- c'toggleFullscreen :: IO ()
- c'toggleBorderlessWindowed :: IO ()
- c'maximizeWindow :: IO ()
- c'minimizeWindow :: IO ()
- c'restoreWindow :: IO ()
- c'setWindowIcon :: Ptr Image -> IO ()
- c'setWindowIcons :: Ptr Image -> CInt -> IO ()
- c'setWindowTitle :: CString -> IO ()
- c'setWindowPosition :: CInt -> CInt -> IO ()
- c'setWindowMonitor :: CInt -> IO ()
- c'setWindowMinSize :: CInt -> CInt -> IO ()
- c'setWindowMaxSize :: CInt -> CInt -> IO ()
- c'setWindowSize :: CInt -> CInt -> IO ()
- c'setWindowOpacity :: CFloat -> IO ()
- c'setWindowFocused :: IO ()
- c'getWindowHandle :: IO (Ptr ())
- c'getScreenWidth :: IO CInt
- c'getScreenHeight :: IO CInt
- c'getRenderWidth :: IO CInt
- c'getRenderHeight :: IO CInt
- c'getMonitorCount :: IO CInt
- c'getCurrentMonitor :: IO CInt
- c'getMonitorPosition :: CInt -> IO (Ptr Vector2)
- c'getMonitorWidth :: CInt -> IO CInt
- c'getMonitorHeight :: CInt -> IO CInt
- c'getMonitorPhysicalWidth :: CInt -> IO CInt
- c'getMonitorPhysicalHeight :: CInt -> IO CInt
- c'getMonitorRefreshRate :: CInt -> IO CInt
- c'getWindowPosition :: IO (Ptr Vector2)
- c'getWindowScaleDPI :: IO (Ptr Vector2)
- c'getMonitorName :: CInt -> IO CString
- c'setClipboardText :: CString -> IO ()
- c'getClipboardText :: IO CString
- c'enableEventWaiting :: IO ()
- c'disableEventWaiting :: IO ()
- c'swapScreenBuffer :: IO ()
- c'pollInputEvents :: IO ()
- c'waitTime :: CDouble -> IO ()
- c'showCursor :: IO ()
- c'hideCursor :: IO ()
- c'isCursorHidden :: IO CBool
- c'enableCursor :: IO ()
- c'disableCursor :: IO ()
- c'isCursorOnScreen :: IO CBool
- c'clearBackground :: Ptr Color -> IO ()
- c'beginDrawing :: IO ()
- c'endDrawing :: IO ()
- c'beginMode2D :: Ptr Camera2D -> IO ()
- c'endMode2D :: IO ()
- c'beginMode3D :: Ptr Camera3D -> IO ()
- c'endMode3D :: IO ()
- c'beginTextureMode :: Ptr RenderTexture -> IO ()
- c'endTextureMode :: IO ()
- c'beginShaderMode :: Ptr Shader -> IO ()
- c'endShaderMode :: IO ()
- c'beginBlendMode :: CInt -> IO ()
- c'endBlendMode :: IO ()
- c'beginScissorMode :: CInt -> CInt -> CInt -> CInt -> IO ()
- c'endScissorMode :: IO ()
- c'beginVrStereoMode :: Ptr VrStereoConfig -> IO ()
- c'endVrStereoMode :: IO ()
- c'loadVrStereoConfig :: Ptr VrDeviceInfo -> IO (Ptr VrStereoConfig)
- c'unloadVrStereoConfig :: Ptr VrStereoConfig -> IO ()
- c'loadShader :: CString -> CString -> IO (Ptr Shader)
- c'loadShaderFromMemory :: CString -> CString -> IO (Ptr Shader)
- c'isShaderReady :: Ptr Shader -> IO CBool
- c'getShaderLocation :: Ptr Shader -> CString -> IO CInt
- c'getShaderLocationAttrib :: Ptr Shader -> CString -> IO CInt
- c'setShaderValue :: Ptr Shader -> CInt -> Ptr () -> CInt -> IO ()
- c'setShaderValueV :: Ptr Shader -> CInt -> Ptr () -> CInt -> CInt -> IO ()
- c'setShaderValueMatrix :: Ptr Shader -> CInt -> Ptr Matrix -> IO ()
- c'setShaderValueTexture :: Ptr Shader -> CInt -> Ptr Texture -> IO ()
- c'unloadShader :: Ptr Shader -> IO ()
- c'getScreenToWorldRay :: Ptr Vector2 -> Ptr Camera3D -> IO (Ptr Ray)
- c'getScreenToWorldRayEx :: Ptr Vector2 -> Ptr Camera3D -> CFloat -> CFloat -> IO (Ptr Ray)
- c'getCameraMatrix :: Ptr Camera3D -> IO (Ptr Matrix)
- c'getCameraMatrix2D :: Ptr Camera2D -> IO (Ptr Matrix)
- c'getWorldToScreen :: Ptr Vector3 -> Ptr Camera3D -> IO (Ptr Vector2)
- c'getScreenToWorld2D :: Ptr Vector2 -> Ptr Camera2D -> IO (Ptr Vector2)
- c'getWorldToScreenEx :: Ptr Vector3 -> Ptr Camera3D -> CInt -> CInt -> IO (Ptr Vector2)
- c'getWorldToScreen2D :: Ptr Vector2 -> Ptr Camera2D -> IO (Ptr Vector2)
- c'setTargetFPS :: CInt -> IO ()
- c'getFPS :: IO CInt
- c'getFrameTime :: IO CFloat
- c'getTime :: IO CDouble
- c'setRandomSeed :: CUInt -> IO ()
- c'getRandomValue :: CInt -> CInt -> IO CInt
- c'loadRandomSequence :: CUInt -> CInt -> CInt -> IO (Ptr CInt)
- c'takeScreenshot :: CString -> IO ()
- c'setConfigFlags :: CUInt -> IO ()
- c'traceLog :: CInt -> CString -> IO ()
- c'setTraceLogLevel :: CInt -> IO ()
- c'memAlloc :: CInt -> IO (Ptr ())
- c'memRealloc :: Ptr () -> CInt -> IO (Ptr ())
- c'memFree :: Ptr () -> IO ()
- c'openURL :: CString -> IO ()
- c'setLoadFileDataCallback :: C'LoadFileDataCallback -> IO ()
- c'setSaveFileDataCallback :: C'SaveFileDataCallback -> IO ()
- c'setLoadFileTextCallback :: C'LoadFileTextCallback -> IO ()
- c'setSaveFileTextCallback :: C'SaveFileTextCallback -> IO ()
- c'loadFileData :: CString -> Ptr CInt -> IO (Ptr CUChar)
- c'unloadFileData :: Ptr CUChar -> IO ()
- c'saveFileData :: CString -> Ptr () -> CInt -> IO CBool
- c'exportDataAsCode :: Ptr CUChar -> CInt -> CString -> IO CBool
- c'loadFileText :: CString -> IO CString
- c'unloadFileText :: CString -> IO ()
- c'saveFileText :: CString -> CString -> IO CBool
- c'fileExists :: CString -> IO CBool
- c'directoryExists :: CString -> IO CBool
- c'isFileExtension :: CString -> CString -> IO CBool
- c'getFileLength :: CString -> IO CBool
- c'getFileExtension :: CString -> IO CString
- c'getFileName :: CString -> IO CString
- c'getFileNameWithoutExt :: CString -> IO CString
- c'getDirectoryPath :: CString -> IO CString
- c'getPrevDirectoryPath :: CString -> IO CString
- c'getWorkingDirectory :: IO CString
- c'getApplicationDirectory :: IO CString
- c'changeDirectory :: CString -> IO CBool
- c'isPathFile :: CString -> IO CBool
- c'loadDirectoryFiles :: CString -> IO (Ptr FilePathList)
- c'loadDirectoryFilesEx :: CString -> CString -> CInt -> IO (Ptr FilePathList)
- c'unloadDirectoryFiles :: Ptr FilePathList -> IO ()
- c'isFileDropped :: IO CBool
- c'loadDroppedFiles :: IO (Ptr FilePathList)
- c'unloadDroppedFiles :: Ptr FilePathList -> IO ()
- c'getFileModTime :: CString -> IO CLong
- c'compressData :: Ptr CUChar -> CInt -> Ptr CInt -> IO (Ptr CUChar)
- c'decompressData :: Ptr CUChar -> CInt -> Ptr CInt -> IO (Ptr CUChar)
- c'encodeDataBase64 :: Ptr CUChar -> CInt -> Ptr CInt -> IO CString
- c'decodeDataBase64 :: Ptr CUChar -> Ptr CInt -> IO (Ptr CUChar)
- c'loadAutomationEventList :: CString -> IO (Ptr AutomationEventList)
- c'exportAutomationEventList :: Ptr AutomationEventList -> CString -> IO CBool
- c'setAutomationEventList :: Ptr AutomationEventList -> IO ()
- c'setAutomationEventBaseFrame :: CInt -> IO ()
- c'startAutomationEventRecording :: IO ()
- c'stopAutomationEventRecording :: IO ()
- c'playAutomationEvent :: Ptr AutomationEvent -> IO ()
- c'isKeyPressed :: CInt -> IO CBool
- c'isKeyPressedRepeat :: CInt -> IO CBool
- c'isKeyDown :: CInt -> IO CBool
- c'isKeyReleased :: CInt -> IO CBool
- c'isKeyUp :: CInt -> IO CBool
- c'setExitKey :: CInt -> IO ()
- c'getKeyPressed :: IO CInt
- c'getCharPressed :: IO CInt
- c'isGamepadAvailable :: CInt -> IO CBool
- c'getGamepadName :: CInt -> IO CString
- c'isGamepadButtonPressed :: CInt -> CInt -> IO CBool
- c'isGamepadButtonDown :: CInt -> CInt -> IO CBool
- c'isGamepadButtonReleased :: CInt -> CInt -> IO CBool
- c'isGamepadButtonUp :: CInt -> CInt -> IO CBool
- c'getGamepadButtonPressed :: IO CInt
- c'getGamepadAxisCount :: CInt -> IO CInt
- c'getGamepadAxisMovement :: CInt -> CInt -> IO CFloat
- c'setGamepadMappings :: CString -> IO CInt
- c'setGamepadVibration :: CInt -> CFloat -> CFloat -> IO ()
- c'isMouseButtonPressed :: CInt -> IO CBool
- c'isMouseButtonDown :: CInt -> IO CBool
- c'isMouseButtonReleased :: CInt -> IO CBool
- c'isMouseButtonUp :: CInt -> IO CBool
- c'getMouseX :: IO CInt
- c'getMouseY :: IO CInt
- c'getMousePosition :: IO (Ptr Vector2)
- c'getMouseDelta :: IO (Ptr Vector2)
- c'setMousePosition :: CInt -> CInt -> IO ()
- c'setMouseOffset :: CInt -> CInt -> IO ()
- c'setMouseScale :: CFloat -> CFloat -> IO ()
- c'getMouseWheelMove :: IO CFloat
- c'getMouseWheelMoveV :: IO (Ptr Vector2)
- c'setMouseCursor :: CInt -> IO ()
- c'getTouchX :: IO CInt
- c'getTouchY :: IO CInt
- c'getTouchPosition :: CInt -> IO (Ptr Vector2)
- c'getTouchPointId :: CInt -> IO CInt
- c'getTouchPointCount :: IO CInt
- c'setGesturesEnabled :: CUInt -> IO ()
- c'isGestureDetected :: CUInt -> IO CBool
- c'getGestureDetected :: IO CInt
- c'getGestureHoldDuration :: IO CFloat
- c'getGestureDragVector :: IO (Ptr Vector2)
- c'getGestureDragAngle :: IO CFloat
- c'getGesturePinchVector :: IO (Ptr Vector2)
- c'getGesturePinchAngle :: IO CFloat
- mk'loadFileDataCallback :: (CString -> Ptr CUInt -> IO (Ptr CUChar)) -> IO C'LoadFileDataCallback
- mk'saveFileDataCallback :: (CString -> Ptr () -> CUInt -> IO CInt) -> IO C'SaveFileDataCallback
- mk'loadFileTextCallback :: (CString -> IO CString) -> IO C'LoadFileTextCallback
- mk'saveFileTextCallback :: (CString -> CString -> IO CInt) -> IO C'SaveFileTextCallback
- createLoadFileDataCallback :: LoadFileDataCallback -> IO C'LoadFileDataCallback
- createSaveFileDataCallback :: Storable a => SaveFileDataCallback a -> IO C'SaveFileDataCallback
- createLoadFileTextCallback :: LoadFileTextCallback -> IO C'LoadFileTextCallback
- createSaveFileTextCallback :: SaveFileTextCallback -> IO C'SaveFileTextCallback
High level
:: Int | |
-> Int | |
-> String | |
-> IO WindowResources | This value must be passed to some |
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 #
toggleBorderlessWindowed :: 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.
getCameraMatrix :: Camera3D -> Matrix Source #
getCameraMatrix2D :: Camera2D -> Matrix Source #
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 -> WindowResources -> IO C'LoadFileDataCallback Source #
setSaveFileDataCallback :: Storable a => SaveFileDataCallback a -> WindowResources -> IO C'SaveFileDataCallback Source #
setLoadFileTextCallback :: LoadFileTextCallback -> WindowResources -> IO C'LoadFileTextCallback Source #
setSaveFileTextCallback :: SaveFileTextCallback -> WindowResources -> IO C'SaveFileTextCallback Source #
loadDirectoryFilesEx :: String -> String -> Bool -> IO FilePathList Source #
isFileDropped :: IO Bool Source #
setAutomationEventList :: AutomationEventList -> WindowResources -> IO AutomationEventListRef Source #
setAutomationEventBaseFrame :: Int -> IO () Source #
playAutomationEvent :: AutomationEvent -> IO () Source #
isKeyPressed :: KeyboardKey -> IO Bool Source #
isKeyPressedRepeat :: 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 #
Native
c'closeWindow :: IO () Source #
c'setWindowState :: CUInt -> IO () Source #
c'clearWindowState :: CUInt -> IO () Source #
c'toggleFullscreen :: IO () Source #
c'toggleBorderlessWindowed :: IO () Source #
c'maximizeWindow :: IO () Source #
c'minimizeWindow :: IO () Source #
c'restoreWindow :: IO () Source #
c'setWindowTitle :: CString -> IO () Source #
c'setWindowMonitor :: CInt -> IO () Source #
c'setWindowOpacity :: CFloat -> IO () Source #
c'setWindowFocused :: IO () Source #
c'getWindowHandle :: IO (Ptr ()) Source #
c'setClipboardText :: CString -> IO () Source #
c'enableEventWaiting :: IO () Source #
c'disableEventWaiting :: IO () Source #
c'swapScreenBuffer :: IO () Source #
c'pollInputEvents :: IO () Source #
c'waitTime :: CDouble -> IO () Source #
c'showCursor :: IO () Source #
c'hideCursor :: IO () Source #
c'enableCursor :: IO () Source #
c'disableCursor :: IO () Source #
c'beginDrawing :: IO () Source #
c'endDrawing :: IO () Source #
c'endMode2D :: IO () Source #
c'endMode3D :: IO () Source #
c'beginTextureMode :: Ptr RenderTexture -> IO () Source #
c'endTextureMode :: IO () Source #
c'endShaderMode :: IO () Source #
c'beginBlendMode :: CInt -> IO () Source #
c'endBlendMode :: IO () Source #
c'endScissorMode :: IO () Source #
c'beginVrStereoMode :: Ptr VrStereoConfig -> IO () Source #
c'endVrStereoMode :: IO () Source #
c'unloadVrStereoConfig :: Ptr VrStereoConfig -> IO () Source #
c'setTargetFPS :: CInt -> IO () Source #
c'setRandomSeed :: CUInt -> IO () Source #
c'takeScreenshot :: CString -> IO () Source #
c'setConfigFlags :: CUInt -> IO () Source #
c'setTraceLogLevel :: CInt -> IO () Source #
c'unloadFileText :: CString -> IO () Source #
c'loadDirectoryFiles :: CString -> IO (Ptr FilePathList) Source #
c'loadDirectoryFilesEx :: CString -> CString -> CInt -> IO (Ptr FilePathList) Source #
c'unloadDirectoryFiles :: Ptr FilePathList -> IO () Source #
c'unloadDroppedFiles :: Ptr FilePathList -> IO () Source #
c'setAutomationEventList :: Ptr AutomationEventList -> IO () Source #
c'setAutomationEventBaseFrame :: CInt -> IO () Source #
c'playAutomationEvent :: Ptr AutomationEvent -> IO () Source #
c'setExitKey :: CInt -> IO () Source #
c'getKeyPressed :: IO CInt Source #
c'getMouseX :: IO CInt Source #
c'getMouseY :: IO CInt Source #
c'setMouseCursor :: CInt -> IO () Source #
c'getTouchX :: IO CInt Source #
c'getTouchY :: IO CInt Source #
c'setGesturesEnabled :: CUInt -> IO () Source #
Callbacks
mk'loadFileDataCallback :: (CString -> Ptr CUInt -> IO (Ptr CUChar)) -> IO C'LoadFileDataCallback Source #
mk'saveFileDataCallback :: (CString -> Ptr () -> CUInt -> IO CInt) -> IO C'SaveFileDataCallback Source #
mk'loadFileTextCallback :: (CString -> IO CString) -> IO C'LoadFileTextCallback Source #
mk'saveFileTextCallback :: (CString -> CString -> IO CInt) -> IO C'SaveFileTextCallback Source #