Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings to rshapes
Synopsis
- setShapesTexture :: Texture -> Rectangle -> IO ()
- getShapesTexture :: IO Texture
- getShapesTextureRectangle :: IO Rectangle
- drawPixel :: Int -> Int -> Color -> IO ()
- drawPixelV :: Vector2 -> Color -> IO ()
- drawLine :: Int -> Int -> Int -> Int -> Color -> IO ()
- drawLineV :: Vector2 -> Vector2 -> Color -> IO ()
- drawLineEx :: Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawLineStrip :: [Vector2] -> Color -> IO ()
- drawLineBezier :: Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawCircle :: Int -> Int -> Float -> Color -> IO ()
- drawCircleSector :: Vector2 -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawCircleSectorLines :: Vector2 -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawCircleGradient :: Int -> Int -> Float -> Color -> Color -> IO ()
- drawCircleV :: Vector2 -> Float -> Color -> IO ()
- drawCircleLines :: Int -> Int -> Float -> Color -> IO ()
- drawCircleLinesV :: Vector2 -> Float -> Color -> IO ()
- drawEllipse :: Int -> Int -> Float -> Float -> Color -> IO ()
- drawEllipseLines :: Int -> Int -> Float -> Float -> Color -> IO ()
- drawRing :: Vector2 -> Float -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawRingLines :: Vector2 -> Float -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawRectangle :: Int -> Int -> Int -> Int -> Color -> IO ()
- drawRectangleV :: Vector2 -> Vector2 -> Color -> IO ()
- drawRectangleRec :: Rectangle -> Color -> IO ()
- drawRectanglePro :: Rectangle -> Vector2 -> Float -> Color -> IO ()
- drawRectangleGradientV :: Int -> Int -> Int -> Int -> Color -> Color -> IO ()
- drawRectangleGradientH :: Int -> Int -> Int -> Int -> Color -> Color -> IO ()
- drawRectangleGradientEx :: Rectangle -> Color -> Color -> Color -> Color -> IO ()
- drawRectangleLines :: Int -> Int -> Int -> Int -> Color -> IO ()
- drawRectangleLinesEx :: Rectangle -> Float -> Color -> IO ()
- drawRectangleRounded :: Rectangle -> Float -> Int -> Color -> IO ()
- drawRectangleRoundedLines :: Rectangle -> Float -> Int -> Color -> IO ()
- drawRectangleRoundedLinesEx :: Rectangle -> Float -> Int -> Float -> Color -> IO ()
- drawTriangle :: Vector2 -> Vector2 -> Vector2 -> Color -> IO ()
- drawTriangleLines :: Vector2 -> Vector2 -> Vector2 -> Color -> IO ()
- drawTriangleFan :: [Vector2] -> Color -> IO ()
- drawTriangleStrip :: [Vector2] -> Color -> IO ()
- drawPoly :: Vector2 -> Int -> Float -> Float -> Color -> IO ()
- drawPolyLines :: Vector2 -> Int -> Float -> Float -> Color -> IO ()
- drawPolyLinesEx :: Vector2 -> Int -> Float -> Float -> Float -> Color -> IO ()
- drawSplineLinear :: [Vector2] -> Float -> Color -> IO ()
- drawSplineBasis :: [Vector2] -> Float -> Color -> IO ()
- drawSplineCatmullRom :: [Vector2] -> Float -> Color -> IO ()
- drawSplineBezierQuadratic :: [Vector2] -> Float -> Color -> IO ()
- drawSplineBezierCubic :: [Vector2] -> Float -> Color -> IO ()
- drawSplineSegmentLinear :: Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawSplineSegmentBasis :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawSplineSegmentCatmullRom :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawSplineSegmentBezierQuadratic :: Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO ()
- drawSplineSegmentBezierCubic :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO ()
- getSplinePointLinear :: Vector2 -> Vector2 -> Float -> Vector2
- getSplinePointBasis :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Vector2
- getSplinePointCatmullRom :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Vector2
- getSplinePointBezierQuad :: Vector2 -> Vector2 -> Vector2 -> Float -> Vector2
- getSplinePointBezierCubic :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Vector2
- checkCollisionRecs :: Rectangle -> Rectangle -> Bool
- checkCollisionCircles :: Vector2 -> Float -> Vector2 -> Float -> Bool
- checkCollisionCircleRec :: Vector2 -> Float -> Rectangle -> Bool
- checkCollisionPointRec :: Vector2 -> Rectangle -> Bool
- checkCollisionPointCircle :: Vector2 -> Vector2 -> Float -> Bool
- checkCollisionPointTriangle :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Bool
- checkCollisionPointPoly :: Vector2 -> [Vector2] -> Bool
- checkCollisionLines :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Maybe Vector2
- checkCollisionPointLine :: Vector2 -> Vector2 -> Vector2 -> Int -> Bool
- checkCollisionCircleLine :: Vector2 -> Float -> Vector2 -> Vector2 -> Bool
- getCollisionRec :: Rectangle -> Rectangle -> Rectangle
- c'setShapesTexture :: Ptr Texture -> Ptr Rectangle -> IO ()
- c'getShapesTexture :: IO (Ptr Texture)
- c'getShapesTextureRectangle :: IO (Ptr Rectangle)
- c'drawPixel :: CInt -> CInt -> Ptr Color -> IO ()
- c'drawPixelV :: Ptr Vector2 -> Ptr Color -> IO ()
- c'drawLine :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'drawLineV :: Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawLineEx :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawLineStrip :: Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'drawLineBezier :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawCircle :: CInt -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawCircleSector :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawCircleSectorLines :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawCircleGradient :: CInt -> CInt -> CFloat -> Ptr Color -> Ptr Color -> IO ()
- c'drawCircleV :: Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawCircleLines :: CInt -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawCircleLinesV :: Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawEllipse :: CInt -> CInt -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawEllipseLines :: CInt -> CInt -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawRing :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawRingLines :: Ptr Vector2 -> CFloat -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawRectangle :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'drawRectangleV :: Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawRectangleRec :: Ptr Rectangle -> Ptr Color -> IO ()
- c'drawRectanglePro :: Ptr Rectangle -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawRectangleGradientV :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO ()
- c'drawRectangleGradientH :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO ()
- c'drawRectangleGradientEx :: Ptr Rectangle -> Ptr Color -> Ptr Color -> Ptr Color -> Ptr Color -> IO ()
- c'drawRectangleLines :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO ()
- c'drawRectangleLinesEx :: Ptr Rectangle -> CFloat -> Ptr Color -> IO ()
- c'drawRectangleRounded :: Ptr Rectangle -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawRectangleRoundedLines :: Ptr Rectangle -> CFloat -> CInt -> Ptr Color -> IO ()
- c'drawRectangleRoundedLinesEx :: Ptr Rectangle -> CFloat -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawTriangle :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawTriangleLines :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Color -> IO ()
- c'drawTriangleFan :: Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'drawTriangleStrip :: Ptr Vector2 -> CInt -> Ptr Color -> IO ()
- c'drawPoly :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawPolyLines :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawPolyLinesEx :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO ()
- c'drawSplineLinear :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawSplineBasis :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawSplineCatmullRom :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawSplineBezierQuadratic :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawSplineBezierCubic :: Ptr Vector2 -> CInt -> CFloat -> Ptr Color -> IO ()
- c'drawSplineSegmentLinear :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawSplineSegmentBasis :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawSplineSegmentCatmullRom :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawSplineSegmentBezierQuadratic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'drawSplineSegmentBezierCubic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO ()
- c'getSplinePointLinear :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2)
- c'getSplinePointBasis :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2)
- c'getSplinePointCatmullRom :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2)
- c'getSplinePointBezierQuad :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2)
- c'getSplinePointBezierCubic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2)
- c'checkCollisionRecs :: Ptr Rectangle -> Ptr Rectangle -> IO CBool
- c'checkCollisionCircles :: Ptr Vector2 -> CFloat -> Ptr Vector2 -> CFloat -> IO CBool
- c'checkCollisionCircleRec :: Ptr Vector2 -> CFloat -> Ptr Rectangle -> IO CBool
- c'checkCollisionPointRec :: Ptr Vector2 -> Ptr Rectangle -> IO CBool
- c'checkCollisionPointCircle :: Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO CBool
- c'checkCollisionPointTriangle :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> IO CBool
- c'checkCollisionPointPoly :: Ptr Vector2 -> Ptr Vector2 -> CInt -> IO CBool
- c'checkCollisionLines :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> IO CBool
- c'checkCollisionPointLine :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CInt -> IO CBool
- c'checkCollisionCircleLine :: Ptr Vector2 -> CFloat -> Ptr Vector2 -> Ptr Vector2 -> IO CBool
- c'getCollisionRec :: Ptr Rectangle -> Ptr Rectangle -> IO (Ptr Rectangle)
High level
drawSplineSegmentBasis :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO () Source #
drawSplineSegmentCatmullRom :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO () Source #
drawSplineSegmentBezierQuadratic :: Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO () Source #
drawSplineSegmentBezierCubic :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Float -> Color -> IO () Source #
checkCollisionLines :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Maybe Vector2 Source #
If a collision is found, returns Just collisionPoint
, otherwise returns Nothing
Native
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'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'drawRectangleGradientV :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO () Source #
c'drawRectangleGradientH :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> Ptr Color -> IO () Source #
c'drawRectangleGradientEx :: Ptr Rectangle -> Ptr Color -> Ptr Color -> Ptr Color -> Ptr Color -> IO () Source #
c'drawRectangleRoundedLinesEx :: Ptr Rectangle -> CFloat -> CInt -> CFloat -> Ptr Color -> IO () Source #
c'drawPolyLinesEx :: Ptr Vector2 -> CInt -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO () Source #
c'drawSplineSegmentBasis :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #
c'drawSplineSegmentCatmullRom :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #
c'drawSplineSegmentBezierQuadratic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #
c'drawSplineSegmentBezierCubic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #
c'getSplinePointBasis :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2) Source #
c'getSplinePointCatmullRom :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2) Source #
c'getSplinePointBezierQuad :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2) Source #
c'getSplinePointBezierCubic :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> IO (Ptr Vector2) Source #
c'checkCollisionPointTriangle :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> IO CBool Source #
c'checkCollisionLines :: Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> Ptr Vector2 -> IO CBool Source #