Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings to rtextures
Synopsis
- loadImage :: String -> IO Image
- loadImageRaw :: String -> Int -> Int -> Int -> Int -> IO Image
- loadImageSvg :: String -> Int -> Int -> IO Image
- loadImageAnim :: String -> IO (Image, Int)
- loadImageAnimFromMemory :: String -> [Integer] -> IO (Image, Int)
- loadImageFromMemory :: String -> [Integer] -> IO Image
- loadImageFromTexture :: Texture -> IO Image
- loadImageFromScreen :: IO Image
- isImageReady :: Image -> IO Bool
- exportImage :: Image -> String -> IO Bool
- exportImageToMemory :: Image -> String -> IO [Word8]
- exportImageAsCode :: Image -> String -> IO Bool
- genImageColor :: Int -> Int -> Color -> IO Image
- genImageGradientLinear :: Int -> Int -> Int -> Color -> Color -> IO Image
- genImageGradientRadial :: Int -> Int -> Float -> Color -> Color -> IO Image
- genImageGradientSquare :: 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
- 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
- imageKernelConvolution :: Image -> [Float] -> 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
- imageRotate :: Image -> Int -> 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 ()
- updateTextureRec :: Texture -> Rectangle -> Ptr () -> IO ()
- 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 ()
- getPixelDataSize :: Int -> Int -> PixelFormat -> Int
- c'loadImage :: CString -> IO (Ptr Image)
- c'loadImageRaw :: CString -> CInt -> CInt -> CInt -> CInt -> IO (Ptr Image)
- c'loadImageSvg :: CString -> CInt -> CInt -> IO (Ptr Image)
- c'loadImageAnim :: CString -> Ptr CInt -> IO (Ptr Image)
- c'loadImageAnimFromMemory :: CString -> Ptr CUChar -> CInt -> Ptr CInt -> IO (Ptr Image)
- c'loadImageFromMemory :: CString -> Ptr CUChar -> CInt -> IO (Ptr Image)
- c'loadImageFromTexture :: Ptr Texture -> IO (Ptr Image)
- c'loadImageFromScreen :: IO (Ptr Image)
- c'isImageReady :: Ptr Image -> IO CBool
- c'unloadImage :: Ptr Image -> IO ()
- c'exportImage :: Ptr Image -> CString -> IO CBool
- c'exportImageToMemory :: Ptr Image -> CString -> Ptr CInt -> IO (Ptr CUChar)
- c'exportImageAsCode :: Ptr Image -> CString -> IO CBool
- c'genImageColor :: CInt -> CInt -> Ptr Color -> IO (Ptr Image)
- c'genImageGradientLinear :: CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO (Ptr Image)
- c'genImageGradientRadial :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO (Ptr Image)
- c'genImageGradientSquare :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO (Ptr Image)
- c'genImageChecked :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO (Ptr Image)
- c'genImageWhiteNoise :: CInt -> CInt -> CFloat -> IO (Ptr Image)
- c'genImagePerlinNoise :: CInt -> CInt -> CInt -> CInt -> CFloat -> IO (Ptr Image)
- c'genImageCellular :: CInt -> CInt -> CInt -> IO (Ptr Image)
- c'genImageText :: CInt -> CInt -> CString -> IO (Ptr Image)
- c'imageCopy :: Ptr Image -> IO (Ptr Image)
- c'imageFromImage :: Ptr Image -> Ptr Rectangle -> IO (Ptr Image)
- c'imageText :: CString -> CInt -> Ptr Color -> IO (Ptr Image)
- c'imageTextEx :: Ptr Font -> CString -> CFloat -> CFloat -> Ptr Color -> IO (Ptr Image)
- c'imageFormat :: Ptr Image -> CInt -> IO ()
- c'imageToPOT :: Ptr Image -> Ptr Color -> IO ()
- c'imageCrop :: Ptr Image -> Ptr Rectangle -> IO ()
- c'imageAlphaCrop :: Ptr Image -> CFloat -> IO ()
- c'imageAlphaClear :: Ptr Image -> Ptr Color -> CFloat -> IO ()
- c'imageAlphaMask :: Ptr Image -> Ptr Image -> IO ()
- c'imageAlphaPremultiply :: Ptr Image -> IO ()
- c'imageBlurGaussian :: Ptr Image -> CInt -> IO ()
- c'imageKernelConvolution :: Ptr Image -> Ptr CFloat -> CInt -> IO ()
- c'imageResize :: Ptr Image -> CInt -> CInt -> IO ()
- c'imageResizeNN :: Ptr Image -> CInt -> CInt -> IO ()
- c'imageResizeCanvas :: Ptr Image -> CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageMipmaps :: Ptr Image -> IO ()
- c'imageDither :: Ptr Image -> CInt -> CInt -> CInt -> CInt -> IO ()
- c'imageFlipVertical :: Ptr Image -> IO ()
- c'imageFlipHorizontal :: Ptr Image -> IO ()
- c'imageRotate :: Ptr Image -> CInt -> IO ()
- c'imageRotateCW :: Ptr Image -> IO ()
- c'imageRotateCCW :: Ptr Image -> IO ()
- c'imageColorTint :: Ptr Image -> Ptr Color -> IO ()
- c'imageColorInvert :: Ptr Image -> IO ()
- c'imageColorGrayscale :: Ptr Image -> IO ()
- c'imageColorContrast :: Ptr Image -> CFloat -> IO ()
- c'imageColorBrightness :: Ptr Image -> CInt -> IO ()
- c'imageColorReplace :: Ptr Image -> Ptr Color -> Ptr Color -> IO ()
- c'loadImageColors :: Ptr Image -> IO (Ptr Color)
- c'loadImagePalette :: Ptr Image -> CInt -> Ptr CInt -> IO (Ptr Color)
- c'getImageAlphaBorder :: Ptr Image -> CFloat -> IO (Ptr Rectangle)
- c'getImageColor :: Ptr Image -> CInt -> CInt -> IO (Ptr Color)
- c'imageClearBackground :: Ptr Image -> Ptr Color -> IO ()
- c'imageDrawPixel :: Ptr Image -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawPixelV :: Ptr Image -> Ptr Vector2 -> Ptr Color -> IO ()
- c'imageDrawLine :: Ptr Image -> CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawLineV :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'imageDrawCircle :: Ptr Image -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawCircleV :: Ptr Image -> Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'imageDrawCircleLines :: Ptr Image -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawCircleLinesV :: Ptr Image -> Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'imageDrawRectangle :: Ptr Image -> CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawRectangleV :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'imageDrawRectangleRec :: Ptr Image -> Ptr Rectangle -> Ptr Color -> IO ()
- c'imageDrawRectangleLines :: Ptr Image -> Ptr Rectangle -> CInt -> Ptr Color -> IO ()
- c'imageDraw :: Ptr Image -> Ptr Image -> Ptr Rectangle -> Ptr Rectangle -> Ptr Color -> IO ()
- c'imageDrawText :: Ptr Image -> CString -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'imageDrawTextEx :: Ptr Image -> Ptr Font -> CString -> Ptr Vector2 -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'loadTexture :: CString -> IO (Ptr Texture)
- c'loadTextureFromImage :: Ptr Image -> IO (Ptr Texture)
- c'loadTextureCubemap :: Ptr Image -> CInt -> IO (Ptr Texture)
- c'loadRenderTexture :: CInt -> CInt -> IO (Ptr RenderTexture)
- c'isTextureReady :: Ptr Texture -> IO CBool
- c'unloadTexture :: Ptr Texture -> IO ()
- c'isRenderTextureReady :: Ptr RenderTexture -> IO CBool
- c'unloadRenderTexture :: Ptr RenderTexture -> IO ()
- c'updateTexture :: Ptr Texture -> Ptr () -> IO ()
- c'updateTextureRec :: Ptr Texture -> Ptr Rectangle -> Ptr () -> IO ()
- c'genTextureMipmaps :: Ptr Texture -> IO ()
- c'setTextureFilter :: Ptr Texture -> CInt -> IO ()
- c'setTextureWrap :: Ptr Texture -> CInt -> IO ()
- c'drawTexture :: Ptr Texture -> CInt -> CInt -> Ptr Color -> IO ()
- c'drawTextureV :: Ptr Texture -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawTextureEx :: Ptr Texture -> Ptr Vector2 -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawTextureRec :: Ptr Texture -> Ptr Rectangle -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawTexturePro :: Ptr Texture -> Ptr Rectangle -> Ptr Rectangle -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawTextureNPatch :: Ptr Texture -> Ptr NPatchInfo -> Ptr Rectangle -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'fade :: Ptr Color -> CFloat -> IO (Ptr Color)
- c'colorToInt :: Ptr Color -> IO CInt
- c'colorNormalize :: Ptr Color -> IO (Ptr Vector4)
- c'colorFromNormalized :: Ptr Vector4 -> IO (Ptr Color)
- c'colorToHSV :: Ptr Color -> IO (Ptr Vector3)
- c'colorFromHSV :: CFloat -> CFloat -> CFloat -> IO (Ptr Color)
- c'colorTint :: Ptr Color -> Ptr Color -> IO (Ptr Color)
- c'colorBrightness :: Ptr Color -> CFloat -> IO (Ptr Color)
- c'colorContrast :: Ptr Color -> CFloat -> IO (Ptr Color)
- c'colorAlpha :: Ptr Color -> CFloat -> IO (Ptr Color)
- c'colorAlphaBlend :: Ptr Color -> Ptr Color -> Ptr Color -> IO (Ptr Color)
- c'getColor :: CUInt -> IO (Ptr Color)
- c'getPixelColor :: Ptr () -> CInt -> IO (Ptr Color)
- c'setPixelColor :: Ptr () -> Ptr Color -> CInt -> IO ()
High level
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 #
getPixelDataSize :: Int -> Int -> PixelFormat -> Int Source #
Native
c'genImageGradientLinear :: CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO (Ptr Image) Source #
c'genImageGradientRadial :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO (Ptr Image) Source #
c'genImageGradientSquare :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO (Ptr Image) Source #
c'genImageChecked :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO (Ptr Image) Source #
c'imageDraw :: Ptr Image -> Ptr Image -> Ptr Rectangle -> Ptr Rectangle -> Ptr Color -> IO () Source #
c'imageDrawTextEx :: Ptr Image -> Ptr Font -> CString -> Ptr Vector2 -> CFloat -> CFloat -> Ptr Color -> IO () Source #
c'loadRenderTexture :: CInt -> CInt -> IO (Ptr RenderTexture) Source #
c'unloadRenderTexture :: Ptr RenderTexture -> IO () Source #
c'drawTexturePro :: Ptr Texture -> Ptr Rectangle -> Ptr Rectangle -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #