Safe Haskell | None |
---|---|
Language | Haskell2010 |
EGL 1.4, carefully reconstructed. You can still use the rest of C APIs via Graphics.EGL.Base.
- eglInit :: IO Egl
- eglInitializeOn :: Maybe EGLNativeDisplay -> [[(EGLConfAttr, Int32)]] -> [(EGLContextAttr, Int32)] -> IO Egl
- eglResume :: Egl -> EGLNativeWindow -> IO ()
- eglSuspend :: Egl -> IO ()
- eglInvalidate :: Egl -> IO ()
- eglPostFrame :: Egl -> IO ()
- eglPostInterval :: Egl -> Int32 -> IO Bool
- eglVendor :: Egl -> IO String
- eglVersion :: Egl -> IO String
- eglExtensions :: Egl -> IO [String]
- eglClientAPIs :: Egl -> IO [String]
- eglConfigID :: Egl -> IO Int32
- eglRenderBuffer :: Egl -> IO Int32
- eglContextClientVersion :: Egl -> IO Int32
- eglContextClientType :: Egl -> IO Int32
- eglScreenDims :: Num a => Egl -> IO (a, a)
- egl_True :: EGLint
- egl_None :: EGLint
- egl_False :: EGLint
- egl_BufferSize :: EGLConfAttr
- egl_Conformant :: EGLConfAttr
- egl_MatchNativePixmap :: EGLConfAttr
- egl_RenderableType :: EGLConfAttr
- egl_ColorBufferType :: EGLConfAttr
- egl_AlphaMaskSize :: EGLConfAttr
- egl_LuminanceSize :: EGLConfAttr
- egl_MaxSwapInterval :: EGLConfAttr
- egl_MinSwapInterval :: EGLConfAttr
- egl_BindToTextureRGBA :: EGLConfAttr
- egl_BindToTextureRGB :: EGLConfAttr
- egl_TransparentRedValue :: EGLConfAttr
- egl_TransparentGreenValue :: EGLConfAttr
- egl_TransparentBlueValue :: EGLConfAttr
- egl_TransparentType :: EGLConfAttr
- egl_SurfaceType :: EGLConfAttr
- egl_SampleBuffers :: EGLConfAttr
- egl_Samples :: EGLConfAttr
- egl_NativeVisualType :: EGLConfAttr
- egl_NativeVisualID :: EGLConfAttr
- egl_NativeRenderable :: EGLConfAttr
- egl_MaxPbufferWidth :: EGLConfAttr
- egl_MaxPbufferPixels :: EGLConfAttr
- egl_MaxPbufferHeight :: EGLConfAttr
- egl_Level :: EGLConfAttr
- egl_ConfigID :: EGLConfAttr
- egl_ConfigCaveat :: EGLConfAttr
- egl_StencilSize :: EGLConfAttr
- egl_DepthSize :: EGLConfAttr
- egl_RedSize :: EGLConfAttr
- egl_GreenSize :: EGLConfAttr
- egl_BlueSize :: EGLConfAttr
- egl_AlphaSize :: EGLConfAttr
- egl_SlowConfig :: EGLint
- egl_NonConformantConfig :: EGLint
- egl_TransparentRgb :: EGLint
- egl_RgbBuffer :: EGLint
- egl_LuminanceBuffer :: EGLint
- egl_NoTexture :: EGLint
- egl_Texture2D :: EGLint
- egl_TextureRgba :: EGLint
- egl_TextureRgb :: EGLint
- egl_PBuffer :: EGLint
- egl_SwapBehaviorPreserved :: EGLint
- egl_MultisampleResolveBox :: EGLint
- egl_VGAlphaFormatPre :: EGLint
- egl_VGColorspaceLinear :: EGLint
- egl_Window :: EGLint
- egl_Pixmap :: EGLint
- egl_OpenGLES :: EGLint
- egl_OpenGL :: EGLint
- egl_OpenGLES2 :: EGLint
- egl_OpenVG :: EGLint
- egl_Height :: EGLSurfAttr
- egl_ConfigId :: EGLSurfAttr
- egl_MultisampleResolve :: EGLSurfAttr
- egl_SwapBehavior :: EGLSurfAttr
- egl_PixelAspectRaito :: EGLSurfAttr
- egl_VerticalResolution :: EGLSurfAttr
- egl_HorizontalResolution :: EGLSurfAttr
- egl_VGAlphaFormat :: EGLSurfAttr
- egl_VGColorspace :: EGLSurfAttr
- egl_RenderBuffer :: EGLSurfAttr
- egl_MipmapLevel :: EGLSurfAttr
- egl_MipmapTexture :: EGLSurfAttr
- egl_TextureTarget :: EGLSurfAttr
- egl_TextureFormat :: EGLSurfAttr
- egl_LargestPbuffer :: EGLSurfAttr
- egl_Width :: EGLSurfAttr
- egl_ContextClientVersion :: EGLContextAttr
EGL Lifecycle
:: Maybe EGLNativeDisplay | If any, specify native display pointer. |
-> [[(EGLConfAttr, Int32)]] | EGL configurations with many fallbacks. |
-> [(EGLContextAttr, Int32)] | Choose GL version here. |
-> IO Egl |
Initialize EGL with specified display and configurations.
:: Egl | |
-> EGLNativeWindow | Window handler |
-> IO () |
Start using graphics APIs on this thread. EGL context would be recreated if the last context was lost due to power management events.
eglSuspend :: Egl -> IO () Source
Stop using graphics APIs on this thread. Should be called before a sleep.
eglInvalidate :: Egl -> IO () Source
Posting the Color Buffer
eglPostFrame :: Egl -> IO () Source
Post EGL surface color buffer to a native window.
eglPostInterval :: Egl -> Int32 -> IO Bool Source
Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context. Returns False on failure. The default swap interval is 1.
Query Context
eglVersion :: Egl -> IO String Source
eglExtensions :: Egl -> IO [String] Source
eglClientAPIs :: Egl -> IO [String] Source
eglConfigID :: Egl -> IO Int32 Source
eglRenderBuffer :: Egl -> IO Int32 Source
eglContextClientVersion :: Egl -> IO Int32 Source
eglContextClientType :: Egl -> IO Int32 Source
eglScreenDims :: Num a => Egl -> IO (a, a) Source
Attributes
EGLConfig Attributes
egl_SlowConfig :: EGLint Source
EGL_CONFIG_CAVEAT value EGL_NONE | 0x3050 | 0x3051
egl_NonConformantConfig :: EGLint Source
EGL_CONFIG_CAVEAT value EGL_NONE | 0x3050 | 0x3051
egl_TransparentRgb :: EGLint Source
EGL_TRANSPARENT_TYPE value EGL_NONE | 0x3052
egl_RgbBuffer :: EGLint Source
EGL_COLOR_BUFFER_TYPE value
egl_LuminanceBuffer :: EGLint Source
EGL_COLOR_BUFFER_TYPE value
egl_NoTexture :: EGLint Source
EGL_TEXTURE_FORMAT value
egl_Texture2D :: EGLint Source
EGL_TEXTURE_FORMAT value
egl_TextureRgba :: EGLint Source
EGL_TEXTURE_FORMAT value
egl_TextureRgb :: EGLint Source
EGL_TEXTURE_FORMAT value
EGL_SURFACE_TYPE mask bits
egl_SwapBehaviorPreserved :: EGLint Source
EGL_SURFACE_TYPE mask bits
egl_MultisampleResolveBox :: EGLint Source
EGL_SURFACE_TYPE mask bits
egl_VGAlphaFormatPre :: EGLint Source
EGL_SURFACE_TYPE mask bits
egl_VGColorspaceLinear :: EGLint Source
EGL_SURFACE_TYPE mask bits
EGL_SURFACE_TYPE mask bits
EGL_SURFACE_TYPE mask bits
EGL_RENDERABLE_TYPE bitmask
EGL_RENDERABLE_TYPE bitmask
egl_OpenGLES2 :: EGLint Source
EGL_RENDERABLE_TYPE bitmask
EGL_RENDERABLE_TYPE bitmask
EGLSurface Attributes
egl_Height :: EGLSurfAttr Source
int Height of surface
egl_ConfigId :: EGLSurfAttr Source
int ID of EGLConfig surface was created with EGL_HEIGHT integer Height of surface
egl_MultisampleResolve :: EGLSurfAttr Source
enum Multisample resolve behavior
egl_SwapBehavior :: EGLSurfAttr Source
enum Buffer swap behavior
egl_PixelAspectRaito :: EGLSurfAttr Source
int Display aspect ratio
egl_VerticalResolution :: EGLSurfAttr Source
int Vertical dot pitch
egl_HorizontalResolution :: EGLSurfAttr Source
int Horizontal dot pitch
egl_VGAlphaFormat :: EGLSurfAttr Source
enum Alpha format for OpenVG
egl_VGColorspace :: EGLSurfAttr Source
enum Color space for OpenVG
egl_RenderBuffer :: EGLSurfAttr Source
enum Render buffer
egl_MipmapLevel :: EGLSurfAttr Source
int Mipmap level to render to
egl_MipmapTexture :: EGLSurfAttr Source
boolean True if texture has mipmaps
egl_TextureTarget :: EGLSurfAttr Source
enum Type of texture: 2D or no texture
egl_TextureFormat :: EGLSurfAttr Source
enum Format of texture: RGB, RGBA, or no texture
egl_LargestPbuffer :: EGLSurfAttr Source
boolean If true, create largest pbuffer possible
egl_Width :: EGLSurfAttr Source
int Width of surface
EGLContext Attributes
egl_ContextClientVersion :: EGLContextAttr Source
specify 2 or later