Safe Haskell | None |
---|
Graphics.GLUtil.VertexArrayObjects
Description
A thin layer over OpenGL 3.1+ vertex array objects.
- makeVAO :: IO () -> IO VertexArrayObject
- withVAO :: VertexArrayObject -> IO r -> IO r
- deleteVAO :: VertexArrayObject -> IO ()
- deleteVAOs :: [VertexArrayObject] -> IO ()
- type VAO = VertexArrayObject
Documentation
makeVAO :: IO () -> IO VertexArrayObjectSource
Allocate a VertexArrayObject
, and initialize it with the
provided action. This action should bind the buffer data, index
data (if necessary), and setup vertex attributes.
withVAO :: VertexArrayObject -> IO r -> IO rSource
Run an action with the given VertexArrayObject
bound.
deleteVAO :: VertexArrayObject -> IO ()Source
Delete a VertexArrayObject
.
deleteVAOs :: [VertexArrayObject] -> IO ()Source
Delete a list of VertexArrayObject
s.
type VAO = VertexArrayObjectSource
Short alias for VertexArrayObject
.