OpenGL-3.0.1.0: A binding for the OpenGL graphics system

Copyright(c) Sven Panne 2002-2016
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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

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

Indexed Buffer manipulation