Copyright | (c) Edward Kmett 2014, (c) Sven Panne 2013 |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getProcAddress :: String -> IO (FunPtr a)
- getProcAddressWithSuffixes :: String -> [String] -> IO (FunPtr a)
- type Invoker a = FunPtr a -> a
- getExtensionEntry :: String -> String -> IO (FunPtr a)
- extensions :: Set String
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.
getProcAddressWithSuffixes :: String -> [String] -> IO (FunPtr a) Source
Retrieve an OpenGL extension entry by name, trying a list of name suffixes
in the given order. Returns nullFunPtr
when no extension entry with the
given name plus any of the suffixes was found.