GLUtil-0.9.1.0: Miscellaneous OpenGL utilities.

Safe HaskellNone
LanguageHaskell98

Graphics.GLUtil.VertexArrayObjects

Description

A thin layer over OpenGL 3.1+ vertex array objects.

Synopsis

Documentation

makeVAO :: IO () -> IO VertexArrayObject Source #

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 r Source #

Run an action with the given VertexArrayObject bound.

deleteVAO :: VertexArrayObject -> IO () Source #

Delete a VertexArrayObject.

deleteVAOs :: [VertexArrayObject] -> IO () Source #

Delete a list of VertexArrayObjects.

type VAO = VertexArrayObject Source #

Short alias for VertexArrayObject.