Package com.mapbox.mapboxsdk.maps.renderer.egl

Contains the Mapbox Maps Android EGL API classes.

Types

Name Summary
EGLConfigChooser
open class EGLConfigChooser : GLSurfaceView.EGLConfigChooser
Selects the right EGLConfig needed for mapbox-gl-native
EGLContextFactory
open class EGLContextFactory : GLSurfaceView.EGLContextFactory
EGLLogWrapper
open class EGLLogWrapper : EGL11
EGLWindowSurfaceFactory
open class EGLWindowSurfaceFactory : GLSurfaceView.EGLWindowSurfaceFactory

EGLConfigChooser

open class EGLConfigChooser : GLSurfaceView.EGLConfigChooser

Selects the right EGLConfig needed for mapbox-gl-native

Constructors

Name Summary
EGLConfigChooser open fun EGLConfigChooser()
EGLConfigChooser open fun EGLConfigChooser(translucentSurface: Boolean)

Types

Name Summary
BufferFormat
enum BufferFormat
DepthStencilFormat
enum DepthStencilFormat

Functions

Name Summary
chooseConfig
abstract fun chooseConfig(p: EGL10, p1: EGLDisplay): EGLConfig
open fun chooseConfig(egl: EGL10, display: EGLDisplay): EGLConfig

chooseConfig

open fun chooseConfig(egl: EGL10, display: EGLDisplay): EGLConfig

BufferFormat

enum BufferFormat

Constructors

Name Summary
BufferFormat open fun BufferFormat(value: Int)

Entries

Name Summary
Format16Bit Format16Bit
Format32BitNoAlpha Format32BitNoAlpha
Format32BitAlpha Format32BitAlpha
Format24Bit Format24Bit
Unknown Unknown

Functions

Name Summary
valueOf
open fun valueOf(name: String): EGLConfigChooser.BufferFormat
values
open fun values(): Array<EGLConfigChooser.BufferFormat>

Properties

Name Summary
value open val value: Int

valueOf

open fun valueOf(name: String): EGLConfigChooser.BufferFormat

value

open val value: Int

values

open fun values(): Array<EGLConfigChooser.BufferFormat>

Format16Bit

Format16Bit

Format24Bit

Format24Bit

Format32BitAlpha

Format32BitAlpha

Format32BitNoAlpha

Format32BitNoAlpha

Unknown

Unknown

DepthStencilFormat

enum DepthStencilFormat

Constructors

Name Summary
DepthStencilFormat open fun DepthStencilFormat(value: Int)

Entries

Name Summary
Format16Depth8Stencil Format16Depth8Stencil
Format24Depth8Stencil Format24Depth8Stencil

Functions

Name Summary
valueOf
open fun valueOf(name: String): EGLConfigChooser.DepthStencilFormat
values
open fun values(): Array<EGLConfigChooser.DepthStencilFormat>

Properties

Name Summary
value open val value: Int

valueOf

open fun valueOf(name: String): EGLConfigChooser.DepthStencilFormat

value

open val value: Int

values

open fun values(): Array<EGLConfigChooser.DepthStencilFormat>

Format16Depth8Stencil

Format16Depth8Stencil

Format24Depth8Stencil

Format24Depth8Stencil

EGLContextFactory

open class EGLContextFactory : GLSurfaceView.EGLContextFactory

Functions

Name Summary
createContext
abstract fun createContext(p: EGL10, p1: EGLDisplay, p2: EGLConfig): EGLContext
open fun createContext(egl: EGL10, display: EGLDisplay, config: EGLConfig): EGLContext
destroyContext
abstract fun destroyContext(p: EGL10, p1: EGLDisplay, p2: EGLContext)
open fun destroyContext(egl: EGL10, display: EGLDisplay, context: EGLContext)

createContext

open fun createContext(egl: EGL10, display: EGLDisplay, config: EGLConfig): EGLContext

destroyContext

open fun destroyContext(egl: EGL10, display: EGLDisplay, context: EGLContext)

EGLLogWrapper

open class EGLLogWrapper : EGL11

Constructors

Name Summary
EGLLogWrapper open fun EGLLogWrapper(egl: EGL, configFlags: Int, log: Writer)

Functions

Name Summary
eglChooseConfig
open fun eglChooseConfig(display: EGLDisplay, attrib_list: Array, configs: Array, config_size: Int, num_config: Array): Boolean
abstract fun [eglChooseConfig](#eglchooseconfig)(p: EGLDisplay, p1: Array, p2: Array, p3: Int, p4: Array): Boolean
eglCopyBuffers
open fun eglCopyBuffers(display: EGLDisplay, surface: EGLSurface, native_pixmap: Any): Boolean
abstract fun eglCopyBuffers(p: EGLDisplay, p1: EGLSurface, p2: Any): Boolean
eglCreateContext
open fun eglCreateContext(display: EGLDisplay, config: EGLConfig, share_context: EGLContext, attrib_list: Array): EGLContext
abstract fun [eglCreateContext](#eglcreatecontext)(p: EGLDisplay, p1: EGLConfig, p2: EGLContext, p3: Array): EGLContext
eglCreatePbufferSurface
open fun eglCreatePbufferSurface(display: EGLDisplay, config: EGLConfig, attrib_list: Array): EGLSurface
abstract fun [eglCreatePbufferSurface](#eglcreatepbuffersurface)(p: EGLDisplay, p1: EGLConfig, p2: Array): EGLSurface
eglCreatePixmapSurface
open fun eglCreatePixmapSurface(display: EGLDisplay, config: EGLConfig, native_pixmap: Any, attrib_list: Array): EGLSurface
abstract fun [eglCreatePixmapSurface](#eglcreatepixmapsurface)(p: EGLDisplay, p1: EGLConfig, p2: Any, p3: Array): EGLSurface
eglCreateWindowSurface
open fun eglCreateWindowSurface(display: EGLDisplay, config: EGLConfig, native_window: Any, attrib_list: Array): EGLSurface
abstract fun [eglCreateWindowSurface](#eglcreatewindowsurface)(p: EGLDisplay, p1: EGLConfig, p2: Any, p3: Array): EGLSurface
eglDestroyContext
open fun eglDestroyContext(display: EGLDisplay, context: EGLContext): Boolean
abstract fun eglDestroyContext(p: EGLDisplay, p1: EGLContext): Boolean
eglDestroySurface
open fun eglDestroySurface(display: EGLDisplay, surface: EGLSurface): Boolean
abstract fun eglDestroySurface(p: EGLDisplay, p1: EGLSurface): Boolean
eglGetConfigAttrib
open fun eglGetConfigAttrib(display: EGLDisplay, config: EGLConfig, attribute: Int, value: Array): Boolean
abstract fun [eglGetConfigAttrib](#eglgetconfigattrib)(p: EGLDisplay, p1: EGLConfig, p2: Int, p3: Array): Boolean
eglGetConfigs
open fun eglGetConfigs(display: EGLDisplay, configs: Array, config_size: Int, num_config: Array): Boolean
abstract fun [eglGetConfigs](#eglgetconfigs)(p: EGLDisplay, p1: Array, p2: Int, p3: Array): Boolean
eglGetCurrentContext
open fun eglGetCurrentContext(): EGLContext
abstract fun eglGetCurrentContext(): EGLContext
eglGetCurrentDisplay
open fun eglGetCurrentDisplay(): EGLDisplay
abstract fun eglGetCurrentDisplay(): EGLDisplay
eglGetCurrentSurface
open fun eglGetCurrentSurface(readdraw: Int): EGLSurface
abstract fun eglGetCurrentSurface(p: Int): EGLSurface
eglGetDisplay
open fun eglGetDisplay(native_display: Any): EGLDisplay
abstract fun eglGetDisplay(p: Any): EGLDisplay
eglGetError
open fun eglGetError(): Int
abstract fun eglGetError(): Int
eglInitialize
open fun eglInitialize(display: EGLDisplay, major_minor: Array): Boolean
abstract fun [eglInitialize](#eglinitialize)(p: EGLDisplay, p1: Array): Boolean
eglMakeCurrent
open fun eglMakeCurrent(display: EGLDisplay, draw: EGLSurface, read: EGLSurface, context: EGLContext): Boolean
abstract fun eglMakeCurrent(p: EGLDisplay, p1: EGLSurface, p2: EGLSurface, p3: EGLContext): Boolean
eglQueryContext
open fun eglQueryContext(display: EGLDisplay, context: EGLContext, attribute: Int, value: Array): Boolean
abstract fun [eglQueryContext](#eglquerycontext)(p: EGLDisplay, p1: EGLContext, p2: Int, p3: Array): Boolean
eglQueryString
open fun eglQueryString(display: EGLDisplay, name: Int): String
abstract fun eglQueryString(p: EGLDisplay, p1: Int): String
eglQuerySurface
open fun eglQuerySurface(display: EGLDisplay, surface: EGLSurface, attribute: Int, value: Array): Boolean
abstract fun [eglQuerySurface](#eglquerysurface)(p: EGLDisplay, p1: EGLSurface, p2: Int, p3: Array): Boolean
eglSwapBuffers
open fun eglSwapBuffers(display: EGLDisplay, surface: EGLSurface): Boolean
abstract fun eglSwapBuffers(p: EGLDisplay, p1: EGLSurface): Boolean
eglTerminate
open fun eglTerminate(display: EGLDisplay): Boolean
abstract fun eglTerminate(p: EGLDisplay): Boolean
eglWaitGL
open fun eglWaitGL(): Boolean
abstract fun eglWaitGL(): Boolean
eglWaitNative
open fun eglWaitNative(engine: Int, bindTarget: Any): Boolean
abstract fun eglWaitNative(p: Int, p1: Any): Boolean
getErrorString
open fun getErrorString(error: Int): String

eglChooseConfig

open fun eglChooseConfig(display: EGLDisplay, attrib_list: Array, configs: Array, config_size: Int, num_config: Array): Boolean

eglCopyBuffers

open fun eglCopyBuffers(display: EGLDisplay, surface: EGLSurface, native_pixmap: Any): Boolean

eglCreateContext

open fun eglCreateContext(display: EGLDisplay, config: EGLConfig, share_context: EGLContext, attrib_list: Array): EGLContext

eglCreatePbufferSurface

open fun eglCreatePbufferSurface(display: EGLDisplay, config: EGLConfig, attrib_list: Array): EGLSurface

eglCreatePixmapSurface

open fun eglCreatePixmapSurface(display: EGLDisplay, config: EGLConfig, native_pixmap: Any, attrib_list: Array): EGLSurface

Deprecated

eglCreateWindowSurface

open fun eglCreateWindowSurface(display: EGLDisplay, config: EGLConfig, native_window: Any, attrib_list: Array): EGLSurface

eglDestroyContext

open fun eglDestroyContext(display: EGLDisplay, context: EGLContext): Boolean

eglDestroySurface

open fun eglDestroySurface(display: EGLDisplay, surface: EGLSurface): Boolean

eglGetConfigAttrib

open fun eglGetConfigAttrib(display: EGLDisplay, config: EGLConfig, attribute: Int, value: Array): Boolean

eglGetConfigs

open fun eglGetConfigs(display: EGLDisplay, configs: Array, config_size: Int, num_config: Array): Boolean

eglGetCurrentContext

open fun eglGetCurrentContext(): EGLContext

eglGetCurrentDisplay

open fun eglGetCurrentDisplay(): EGLDisplay

eglGetCurrentSurface

open fun eglGetCurrentSurface(readdraw: Int): EGLSurface

eglGetDisplay

open fun eglGetDisplay(native_display: Any): EGLDisplay

eglGetError

open fun eglGetError(): Int

eglInitialize

open fun eglInitialize(display: EGLDisplay, major_minor: Array): Boolean

eglMakeCurrent

open fun eglMakeCurrent(display: EGLDisplay, draw: EGLSurface, read: EGLSurface, context: EGLContext): Boolean

eglQueryContext

open fun eglQueryContext(display: EGLDisplay, context: EGLContext, attribute: Int, value: Array): Boolean

eglQueryString

open fun eglQueryString(display: EGLDisplay, name: Int): String

eglQuerySurface

open fun eglQuerySurface(display: EGLDisplay, surface: EGLSurface, attribute: Int, value: Array): Boolean

eglSwapBuffers

open fun eglSwapBuffers(display: EGLDisplay, surface: EGLSurface): Boolean

eglTerminate

open fun eglTerminate(display: EGLDisplay): Boolean

eglWaitGL

open fun eglWaitGL(): Boolean

eglWaitNative

open fun eglWaitNative(engine: Int, bindTarget: Any): Boolean

getErrorString

open fun getErrorString(error: Int): String

EGLWindowSurfaceFactory

open class EGLWindowSurfaceFactory : GLSurfaceView.EGLWindowSurfaceFactory

Functions

Name Summary
createWindowSurface
abstract fun createWindowSurface(p: EGL10, p1: EGLDisplay, p2: EGLConfig, p3: Any): EGLSurface
open fun createWindowSurface(egl: EGL10, display: EGLDisplay, config: EGLConfig, nativeWindow: Any): EGLSurface
destroySurface
abstract fun destroySurface(p: EGL10, p1: EGLDisplay, p2: EGLSurface)
open fun destroySurface(egl: EGL10, display: EGLDisplay, surface: EGLSurface)

createWindowSurface

open fun createWindowSurface(egl: EGL10, display: EGLDisplay, config: EGLConfig, nativeWindow: Any): EGLSurface

destroySurface

open fun destroySurface(egl: EGL10, display: EGLDisplay, surface: EGLSurface)