To openglraw

This commit is contained in:
2023-03-09 21:28:22 +00:00
parent 653de7226e
commit 9989c65d75
5 changed files with 11 additions and 16 deletions
+2 -6
View File
@@ -1,9 +1,9 @@
module GLHelp where
import Foreign.Ptr
import Foreign.Marshal
import Foreign.Ptr
import Foreign.Storable
import Graphics.GL.Core45
import Graphics.Rendering.OpenGL hiding (Point, imageHeight, scale, translate)
mglCreate :: (GLsizei -> Ptr GLuint -> IO ()) -> IO GLuint
mglCreate f = do
@@ -13,7 +13,3 @@ mglCreate f = do
mglDelete :: (GLsizei -> Ptr GLuint -> IO ()) -> GLuint -> IO ()
mglDelete f i = with i $ \ptr -> f 1 ptr
unTexture :: TextureObject -> GLuint
unTexture (TextureObject t) = t