gl-0.9: Complete OpenGL raw bindings
Copyright(c) Edward Kmett and Gabríel Arthúr Pétursson 2014-2016 (c) Sven Panne 2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Internal.Proc

Description

This module offers a portable way to retrieve OpenGL extension entries, providing a portability layer upon platform-specific mechanisms like glXGetProcAddress, wglGetProcAddress or NSAddressOfSymbol.

This internal module offers convenience functions and re-exports for OpenGL extension loading.

Synopsis

Documentation

getProcAddress :: String -> IO (FunPtr a) Source #

Retrieve an OpenGL extension entry by name. Returns nullFunPtr when no extension entry with the given name was found.

type Invoker a = FunPtr a -> a Source #