Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- loadImage :: String -> IO Image
- loadImageRaw :: String -> Int -> Int -> Int -> Int -> IO Image
- loadImageAnim :: String -> IO (Image, Int)
- loadImageFromMemory :: String -> [Integer] -> IO Image
- loadImageFromTexture :: Texture -> IO Image
- loadImageFromScreen :: IO Image
- isImageReady :: Image -> IO Bool
- exportImage :: Image -> String -> IO Bool
- exportImageAsCode :: Image -> String -> IO Bool
- genImageColor :: Int -> Int -> Color -> IO Image
- genImageGradientV :: Int -> Int -> Color -> Color -> IO Image
- genImageGradientH :: Int -> Int -> Color -> Color -> IO Image
- genImageGradientRadial :: Int -> Int -> Float -> Color -> Color -> IO Image
- genImageChecked :: Int -> Int -> Int -> Int -> Color -> Color -> IO Image
- genImageWhiteNoise :: Int -> Int -> Float -> IO Image
- genImagePerlinNoise :: Int -> Int -> Int -> Int -> Float -> IO Image
- genImageCellular :: Int -> Int -> Int -> IO Image
- genImageText :: Int -> Int -> String -> IO Image
- imageCopy :: Image -> IO Image
- imageFromImage :: Image -> Rectangle -> IO Image
- imageText :: String -> Int -> Color -> IO Image
- imageTextEx :: Font -> String -> Float -> Float -> Color -> IO Image
- imageFormat :: Image -> PixelFormat -> IO Image
- imageToPOT :: Image -> Color -> IO Image
- imageCrop :: Image -> Rectangle -> IO Image
- imageAlphaCrop :: Image -> Float -> IO Image
- imageAlphaClear :: Image -> Color -> Float -> IO Image
- imageAlphaMask :: Image -> Image -> IO Image
- imageAlphaPremultiply :: Image -> IO Image
- imageBlurGaussian :: Image -> Int -> IO Image
- imageResize :: Image -> Int -> Int -> IO Image
- imageResizeNN :: Image -> Int -> Int -> IO Image
- imageResizeCanvas :: Image -> Int -> Int -> Int -> Int -> Color -> IO Image
- imageMipmaps :: Image -> IO Image
- imageDither :: Image -> Int -> Int -> Int -> Int -> IO Image
- imageFlipVertical :: Image -> IO Image
- imageFlipHorizontal :: Image -> IO Image
- imageRotateCW :: Image -> IO Image
- imageRotateCCW :: Image -> IO Image
- imageColorTint :: Image -> Color -> IO Image
- imageColorInvert :: Image -> IO Image
- imageColorGrayscale :: Image -> IO Image
- imageColorContrast :: Image -> Float -> IO Image
- imageColorBrightness :: Image -> Int -> IO Image
- imageColorReplace :: Image -> Color -> Color -> IO Image
- loadImageColors :: Image -> IO [Color]
- loadImagePalette :: Image -> Int -> IO [Color]
- getImageAlphaBorder :: Image -> Float -> IO Rectangle
- getImageColor :: Image -> Int -> Int -> IO Color
- imageClearBackground :: Image -> Color -> IO Image
- imageDrawPixel :: Image -> Int -> Int -> Color -> IO Image
- imageDrawPixelV :: Image -> Vector2 -> Color -> IO Image
- imageDrawLine :: Image -> Int -> Int -> Int -> Int -> Color -> IO Image
- imageDrawLineV :: Image -> Vector2 -> Vector2 -> Color -> IO Image
- imageDrawCircle :: Image -> Int -> Int -> Int -> Color -> IO Image
- imageDrawCircleV :: Image -> Vector2 -> Int -> Color -> IO Image
- imageDrawCircleLines :: Image -> Int -> Int -> Int -> Color -> IO Image
- imageDrawCircleLinesV :: Image -> Vector2 -> Int -> Color -> IO Image
- imageDrawRectangle :: Image -> Int -> Int -> Int -> Int -> Color -> IO Image
- imageDrawRectangleV :: Image -> Vector2 -> Vector2 -> Color -> IO Image
- imageDrawRectangleRec :: Image -> Rectangle -> Color -> IO Image
- imageDrawRectangleLines :: Image -> Rectangle -> Int -> Color -> IO Image
- imageDraw :: Image -> Image -> Rectangle -> Rectangle -> Color -> IO Image
- imageDrawText :: Image -> String -> Int -> Int -> Int -> Color -> IO Image
- imageDrawTextEx :: Image -> Font -> String -> Vector2 -> Float -> Float -> Color -> IO Image
- loadTexture :: String -> WindowResources -> IO Texture
- loadTextureFromImage :: Image -> WindowResources -> IO Texture
- loadTextureCubemap :: Image -> CubemapLayout -> WindowResources -> IO Texture
- loadRenderTexture :: Int -> Int -> WindowResources -> IO RenderTexture
- isTextureReady :: Texture -> IO Bool
- isRenderTextureReady :: RenderTexture -> IO Bool
- unloadTexture :: Texture -> WindowResources -> IO ()
- unloadRenderTexture :: RenderTexture -> WindowResources -> IO ()
- updateTexture :: Texture -> Ptr () -> IO Texture
- updateTextureRec :: Texture -> Rectangle -> Ptr () -> IO Texture
- genTextureMipmaps :: Texture -> IO Texture
- setTextureFilter :: Texture -> TextureFilter -> IO Texture
- setTextureWrap :: Texture -> TextureWrap -> IO Texture
- drawTexture :: Texture -> Int -> Int -> Color -> IO ()
- drawTextureV :: Texture -> Vector2 -> Color -> IO ()
- drawTextureEx :: Texture -> Vector2 -> Float -> Float -> Color -> IO ()
- drawTextureRec :: Texture -> Rectangle -> Vector2 -> Color -> IO ()
- drawTexturePro :: Texture -> Rectangle -> Rectangle -> Vector2 -> Float -> Color -> IO ()
- drawTextureNPatch :: Texture -> NPatchInfo -> Rectangle -> Vector2 -> Float -> Color -> IO ()
- fade :: Color -> Float -> Color
- colorToInt :: Color -> Int
- colorNormalize :: Color -> Vector4
- colorFromNormalized :: Vector4 -> Color
- colorToHSV :: Color -> Vector3
- colorFromHSV :: Float -> Float -> Float -> Color
- colorTint :: Color -> Color -> Color
- colorBrightness :: Color -> Float -> Color
- colorContrast :: Color -> Float -> Color
- colorAlpha :: Color -> Float -> Color
- colorAlphaBlend :: Color -> Color -> Color -> Color
- getColor :: Integer -> Color
- getPixelColor :: Ptr () -> PixelFormat -> IO Color
- setPixelColor :: Ptr () -> Color -> PixelFormat -> IO ()
Documentation
loadImageAnim :: String -> IO (Image, Int) Source #
Returns the animation and the number of frames in a tuple
imageFormat :: Image -> PixelFormat -> IO Image Source #
imageDrawTextEx :: Image -> Font -> String -> Vector2 -> Float -> Float -> Color -> IO Image Source #
loadTexture :: String -> WindowResources -> IO Texture Source #
loadTextureFromImage :: Image -> WindowResources -> IO Texture Source #
loadTextureCubemap :: Image -> CubemapLayout -> WindowResources -> IO Texture Source #
loadRenderTexture :: Int -> Int -> WindowResources -> IO RenderTexture Source #
unloadTexture :: Texture -> WindowResources -> IO () Source #
Unloads a texture from GPU memory (VRAM). Textures are automatically unloaded
when closeWindow
is called, so manually unloading textures is not required.
In larger projects, you may want to manually unload textures to avoid having
them in VRAM for too long.
unloadRenderTexture :: RenderTexture -> WindowResources -> IO () Source #
Unloads a render texture from GPU memory (VRAM). Render textures are
automatically unloaded when closeWindow
is called, so manually unloading
render textures is not required. In larger projects, you may want to
manually unload render textures to avoid having them in VRAM for too long.
setTextureFilter :: Texture -> TextureFilter -> IO Texture Source #
setTextureWrap :: Texture -> TextureWrap -> IO Texture Source #
drawTextureNPatch :: Texture -> NPatchInfo -> Rectangle -> Vector2 -> Float -> Color -> IO () Source #
colorToInt :: Color -> Int Source #
colorNormalize :: Color -> Vector4 Source #
colorFromNormalized :: Vector4 -> Color Source #
colorToHSV :: Color -> Vector3 Source #
getPixelColor :: Ptr () -> PixelFormat -> IO Color Source #
setPixelColor :: Ptr () -> Color -> PixelFormat -> IO () Source #