Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Raylib.Core.Textures
Contents
Description
Bindings to rtextures
Synopsis
- loadImage :: String -> IO Image
- loadImageRaw :: String -> Int -> Int -> 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
- isImageValid :: 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
- imageFromChannel :: Image -> Int -> 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
- imageDrawTriangle :: Image -> Vector2 -> Vector2 -> Vector2 -> Color -> IO Image
- imageDrawTriangleEx :: Image -> Vector2 -> Vector2 -> Vector2 -> Color -> Color -> Color -> IO Image
- imageDrawTriangleLines :: Image -> Vector2 -> Vector2 -> Vector2 -> Color -> IO Image
- imageDrawTriangleFan :: Image -> [Vector2] -> Color -> IO Image
- imageDrawTriangleStrip :: Image -> [Vector2] -> 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 -> IO Texture
- loadTextureFromImage :: Image -> IO Texture
- loadTextureCubemap :: Image -> CubemapLayout -> IO Texture
- loadRenderTexture :: Int -> Int -> IO RenderTexture
- isTextureValid :: Texture -> IO Bool
- isRenderTextureValid :: 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
- colorLerp :: Color -> Color -> Float -> 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'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'isImageValid :: 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'imageFromChannel :: Ptr Image -> CInt -> 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'imageDrawTriangle :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'imageDrawTriangleEx :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> Ptr Color -> Ptr Color -> IO ()
- c'imageDrawTriangleLines :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'imageDrawTriangleFan :: Ptr Image -> Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'imageDrawTriangleStrip :: Ptr Image -> Ptr Vector2 -> 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'isTextureValid :: Ptr Texture -> IO CBool
- c'unloadTexture :: Ptr Texture -> IO ()
- c'isRenderTextureValid :: 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'colorLerp :: Ptr Color -> Ptr Color -> CFloat -> 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 #
imageDrawTriangleEx :: Image -> Vector2 -> Vector2 -> Vector2 -> Color -> Color -> Color -> IO Image Source #
imageDrawTextEx :: Image -> Font -> String -> Vector2 -> Float -> Float -> Color -> IO Image Source #
loadTextureCubemap :: Image -> CubemapLayout -> IO Texture Source #
loadRenderTexture :: Int -> Int -> IO RenderTexture Source #
unloadTexture :: Texture -> WindowResources -> IO () Source #
Unloads a managed
texture from GPU memory (VRAM)
unloadRenderTexture :: RenderTexture -> WindowResources -> IO () Source #
Unloads a managed
render texture from GPU memory (VRAM)
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'imageDrawTriangle :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO () Source #
c'imageDrawTriangleEx :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> Ptr Color -> Ptr Color -> IO () Source #
c'imageDrawTriangleLines :: Ptr Image -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO () 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 #