This commit is contained in:
2025-11-10 14:55:46 +00:00
parent df435819eb
commit 1546caa6a3
5 changed files with 15 additions and 18 deletions
+2
View File
@@ -331,3 +331,5 @@ withByteString :: Num t => BS.ByteString -> (Ptr b -> t -> IO a) -> IO a
withByteString bs act =
BU.unsafeUseAsCStringLen bs $ \(ptr, size) ->
act (castPtr ptr) (fromIntegral size)
--boVertex
+8
View File
@@ -83,6 +83,14 @@ data VBO = VBO
-- add int for AMOUNT of data poked!
}
data BOType = WindowPoss
data FloatBO = FloatBO
{ _boName :: GLuint
, _boPtr :: Ptr Float
, _boType :: BOType
}
data EBO = EBO
{ _eboName :: GLuint
, _eboPtr :: Ptr GLushort