lowgl-0.2.0.0: Basic gl wrapper and reference

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Low.VAO

Synopsis

Documentation

data VAO

A VAO stores vertex attribute layouts and the VBO source of vertices for those attributes. It also stores the state of the element array binding target. The vertex array binding target admits one VAO at a time.

Instances

newVAO :: IO VAO

Create a new VAO. The only thing you can do with a VAO is bind it to the vertex array binding target.

deleteVAO :: VAO -> IO ()

Delete a VAO.

bindVAO :: VAO -> IO ()

Assign the VAO to the vertex array binding target. The VAO already bound will be replaced, if any.