Move FBOs to opengl raw

This commit is contained in:
2023-03-09 15:42:17 +00:00
parent 76a8b05433
commit 44b56ed163
7 changed files with 121 additions and 93 deletions
+5
View File
@@ -3,6 +3,7 @@ import Foreign.Ptr
import Foreign.Marshal
import Foreign.Storable
import Graphics.GL.Core45
import Graphics.Rendering.OpenGL hiding (Point, imageHeight, scale, translate)
mglCreateSingle :: (GLsizei -> Ptr GLuint -> IO ()) -> IO GLuint
@@ -10,3 +11,7 @@ mglCreateSingle f = do
alloca $ \nameptr -> do
f 1 nameptr
peek nameptr
unTexture :: TextureObject -> GLuint
unTexture (TextureObject t) = t