opengles-0.8.3: Functional interface for OpenGL 4.1+ and OpenGL ES 2.0+

Safe HaskellNone
LanguageHaskell2010

Graphics.EGL.Base

Contents

Description

Low-level wrapper and some utility around EGL upto 1.5. Graphics.EGL is preffered for normal use.

Synopsis

EGL Types

type EGLint = Int32 Source

32-bit signed integer.

type EGLConfig = Ptr () Source

Window System Types

type EGLImage = Ptr () Source

type EGLSync = Ptr () Source

Bindings to EGL

EGL 1.4

EGL 1.5

Extensions

Misc

newtype EGLConfAttr Source

Constructors

EGLConfAttr EGLint 

newtype EGLSurfAttr Source

Constructors

EGLSurfAttr EGLint 

type Egl = IORef EglCurrent Source

EGL state holder per context.

showEglError :: EGLint -> String Source

Trun errno into String.

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

Encode attribute list from [(name, value)] pairs.

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

Get an EGLDisplay and choose a suitable config.

setSurface :: EGLDisplay -> EGLConfig -> EGLNativeWindow -> IO (EGLSurface, EGLint, EGLint) Source

Create a surface and return its pointer, screen_width and screen_height.