OpenGL-2.9.1.0: A binding for the OpenGL graphics system

Portabilityportable
Stabilitystable
MaintainerSven Panne <svenpanne@gmail.com>
Safe HaskellNone

Graphics.Rendering.OpenGL.GL.BufferObjects

Contents

Description

This module corresponds to section 2.9 (Buffer Objects) of the OpenGL 2.1 specs.

Synopsis

Buffer Objects

Binding Buffer Objects

Handling Buffer Data

Mapping Buffer Objects

withMappedBuffer :: BufferTarget -> BufferAccess -> (Ptr a -> IO b) -> (MappingFailure -> IO b) -> IO bSource

Convenience function for an exception-safe combination of mapBuffer and unmapBuffer.

Indexed Buffer manipulation