h-raylib-5.5.1.0: Raylib bindings for Haskell
Safe HaskellNone
LanguageHaskell2010

Raylib.Core.Shapes

Description

Bindings to rshapes

Synopsis

High level

drawPixel :: Int -> Int -> Color -> IO () Source #

drawLine :: Int -> Int -> Int -> Int -> Color -> IO () Source #

drawLineEx :: Vector2 -> Vector2 -> Float -> Color -> IO () Source #

drawLineBezier :: Vector2 -> Vector2 -> Float -> Color -> IO () Source #

drawCircle :: Int -> Int -> Float -> Color -> IO () Source #

drawCircleSector :: Vector2 -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawCircleSectorLines :: Vector2 -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawCircleGradient :: Int -> Int -> Float -> Color -> Color -> IO () Source #

drawCircleV :: Vector2 -> Float -> Color -> IO () Source #

drawCircleLines :: Int -> Int -> Float -> Color -> IO () Source #

drawCircleLinesV :: Vector2 -> Float -> Color -> IO () Source #

drawEllipse :: Int -> Int -> Float -> Float -> Color -> IO () Source #

drawEllipseLines :: Int -> Int -> Float -> Float -> Color -> IO () Source #

drawRing :: Vector2 -> Float -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawRingLines :: Vector2 -> Float -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawRectangle :: Int -> Int -> Int -> Int -> Color -> IO () Source #

drawRectanglePro :: Rectangle -> Vector2 -> Float -> Color -> IO () Source #

drawRectangleGradientV :: Int -> Int -> Int -> Int -> Color -> Color -> IO () Source #

drawRectangleGradientH :: Int -> Int -> Int -> Int -> Color -> Color -> IO () Source #

drawRectangleLines :: Int -> Int -> Int -> Int -> Color -> IO () Source #

drawRectangleLinesEx :: Rectangle -> Float -> Color -> IO () Source #

drawRectangleRounded :: Rectangle -> Float -> Int -> Color -> IO () Source #

drawRectangleRoundedLinesEx :: Rectangle -> Float -> Int -> Float -> Color -> IO () Source #

drawPoly :: Vector2 -> Int -> Float -> Float -> Color -> IO () Source #

drawPolyLines :: Vector2 -> Int -> Float -> Float -> Color -> IO () Source #

drawPolyLinesEx :: Vector2 -> Int -> Float -> Float -> Float -> Color -> IO () Source #

drawSplineLinear :: [Vector2] -> Float -> Color -> IO () Source #

drawSplineBasis :: [Vector2] -> Float -> Color -> IO () Source #

drawSplineCatmullRom :: [Vector2] -> Float -> Color -> IO () Source #

drawSplineBezierQuadratic :: [Vector2] -> Float -> Color -> IO () Source #

drawSplineBezierCubic :: [Vector2] -> Float -> Color -> IO () Source #

checkCollisionCircles :: Vector2 -> Float -> Vector2 -> Float -> Bool Source #

checkCollisionLines :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Maybe Vector2 Source #

If a collision is found, returns Just collisionPoint, otherwise returns Nothing

Native

c'drawPixel :: CInt -> CInt -> Ptr Color -> IO () Source #

c'drawLine :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawLineEx :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #

c'drawLineStrip :: Ptr Vector2 -> CInt -> Ptr Color -> IO () Source #

c'drawLineBezier :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #

c'drawCircle :: CInt -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawCircleSector :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCircleSectorLines :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCircleGradient :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO () Source #

c'drawCircleV :: Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #

c'drawCircleLines :: CInt -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawCircleLinesV :: Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #

c'drawEllipse :: CInt -> CInt -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawEllipseLines :: CInt -> CInt -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawRing :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawRingLines :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawRectangle :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawRectangleGradientV :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO () Source #

c'drawRectangleGradientH :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO () Source #

c'drawRectangleLines :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawRectangleRounded :: Ptr Rectangle -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawRectangleRoundedLines :: Ptr Rectangle -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawRectangleRoundedLinesEx :: Ptr Rectangle -> CFloat -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawTriangleFan :: Ptr Vector2 -> CInt -> Ptr Color -> IO () Source #

c'drawPoly :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawPolyLines :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawPolyLinesEx :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawSplineLinear :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawSplineBasis :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawSplineCatmullRom :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawSplineBezierQuadratic :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'drawSplineBezierCubic :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO () Source #

c'checkCollisionCircles :: Ptr Vector2 -> CFloat -> Ptr Vector2 -> CFloat -> IO CBool Source #