blob: d4dae94d4f16301e647b30d17203469c333371a3 (
plain)
1
2
3
4
5
6
7
8
|
module Game.Utils (rect) where
import Foreign.C.Types (CInt)
import qualified SDL
import SDL.Vect (V2 (..))
rect :: Int -> Int -> Int -> Int -> SDL.Rectangle CInt
rect x y w h = SDL.Rectangle (SDL.P $ V2 (fromIntegral x) (fromIntegral y)) (V2 (fromIntegral w) (fromIntegral h))
|