opengles-0.7.0: OpenGL ES 2.0 and 3.0 with EGL 1.4

Safe HaskellUnsafe
LanguageHaskell2010

Graphics.EGL.Base

Contents

Synopsis

EGL Types

type EGLint = Int32 Source

32-bit signed integer

type EGLConfig = Ptr () Source

Window System Types

Bindings to EGL

Obtain Extension Function Pointer

inlinePerformIO :: IO a -> a Source

Just like unsafePerformIO, but we inline it. Big performance gains as it exposes lots of things to further inlining. Very unsafe. In particular, you should do no memory allocation inside an inlinePerformIO block.

Misc

newtype EGLConfAttr Source

Constructors

EGLConfAttr EGLint 

newtype EGLSurfAttr Source

Constructors

EGLSurfAttr EGLint 

withAttrList :: [(EGLint, Int32)] -> (Ptr EGLint -> IO b) -> IO b Source

setupEgl :: Maybe EGLNativeDisplay -> [[(EGLConfAttr, Int32)]] -> IO (EGLDisplay, EGLConfig) Source

Get an EGLDisplay and choose a suitable config