Files
loop/src/GLHelp.hs
T
2023-03-09 09:53:23 +00:00

13 lines
258 B
Haskell

module GLHelp where
import Foreign.Ptr
import Foreign.Marshal
import Foreign.Storable
import Graphics.GL.Core45
mglCreateSingle :: (Ptr GLuint -> IO ()) -> IO GLuint
mglCreateSingle f = do
alloca $ \nameptr -> do
f nameptr
peek nameptr