HGamer3D-SFML-Binding-0.2.0: Windows Game Engine for the Haskell Programmer - SFML Bindings

Safe HaskellNone

HGamer3D.Bindings.SFML.Utils

Synopsis

Documentation

withCStringLenIntConv :: Num n => String -> ((CString, n) -> IO a) -> IO aSource

withIntConv :: (Storable b, Integral a, Integral b) => a -> (Ptr b -> IO c) -> IO cSource

withFloatConv :: (Storable b, RealFloat a, RealFloat b) => a -> (Ptr b -> IO c) -> IO cSource

withCUString :: String -> (Ptr b -> IO a) -> IO aSource

alloc64k :: (Ptr a -> IO b) -> IO bSource

withBoolUtil :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO bSource

withEnumUtil :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO cSource

cIntConv :: (Integral a, Integral b) => a -> bSource

Integral conversion

cFloatConv :: (RealFloat a, RealFloat b) => a -> bSource

Floating conversion

cToEnum :: (Integral i, Enum e) => i -> eSource

Convert a C enumeration to Haskell.

cFromEnum :: (Enum e, Integral i) => e -> iSource

Convert a Haskell enumeration to C.