This commit is contained in:
2023-03-09 09:53:23 +00:00
parent b8fbc6055d
commit 2b118777b5
+12
View File
@@ -0,0 +1,12 @@
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