h-raylib-5.1.3.0: Raylib bindings for Haskell
Safe HaskellSafe-Inferred
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 #

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

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

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

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

drawPoly :: Vector2 -> Int -> Float -> 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'drawLine :: CInt -> CInt -> CInt -> CInt -> Ptr Color -> IO () Source #