GLDisplayEGL

the contents of a #GstGLDisplayEGL are private and should only be accessed through the provided API

Constructors

this
this()

Create a new #GstGLDisplayEGL using the default EGL_DEFAULT_DISPLAY.

Members

Static functions

fromGlDisplay
gstglegl.gldisplay_egl.GLDisplayEGL fromGlDisplay(gstgl.gldisplay.GLDisplay display)

Creates a EGL display connection from a native Display.

getFromNative
void* getFromNative(gstgl.types.GLDisplayType type, size_t display)

Attempts to create a new EGLDisplay from display. If type is gstgl.types.GLDisplayType.Any or gstgl.types.GLDisplayType.EglSurfaceless, then display must be 0. type must not be gstgl.types.GLDisplayType.None.

newSurfaceless
gstglegl.gldisplay_egl.GLDisplayEGL newSurfaceless()

Create a new surfaceless #GstGLDisplayEGL using the Mesa3D EGL_PLATFORM_SURFACELESS_MESA extension.

newWithEglDisplay
gstglegl.gldisplay_egl.GLDisplayEGL newWithEglDisplay(void* display)

Inherited Members

From GLDisplay

newWithType
gstgl.gldisplay.GLDisplay newWithType(gstgl.types.GLDisplayType type)

Will always return a #GstGLDisplay of a single type. This differs from gstgl.gldisplay.GLDisplay.new_ and the seemingly equivalent call gst_gl_display_new_with_type (GST_GL_DISPLAY_TYPE_ANY) in that the latter may return NULL.

addContext
bool addContext(gstgl.glcontext.GLContext context)
createContext
bool createContext(gstgl.glcontext.GLContext otherContext, gstgl.glcontext.GLContext pContext)

It requires the display's object lock to be held.

createWindow
gstgl.glwindow.GLWindow createWindow()
ensureContext
bool ensureContext(gstgl.glcontext.GLContext otherContext, gstgl.glcontext.GLContext context)

Ensures that the display has a valid GL context for the current thread. If context already contains a valid context, this does nothing.

filterGlApi
void filterGlApi(gstgl.types.GLAPI glApi)

limit the use of OpenGL to the requested gl_api. This is intended to allow application and elements to request a specific set of OpenGL API's based on what they support. See gstgl.glcontext.GLContext.getGlApi for the retrieving the API supported by a #GstGLContext.

findWindow
gstgl.glwindow.GLWindow findWindow(void* data, glib.types.CompareFunc compareFunc)

Execute compare_func over the list of windows stored by display. The first argument to compare_func is the #GstGLWindow being checked and the second argument is data.

getGlApi
gstgl.types.GLAPI getGlApi()

see gstgl.gldisplay.GLDisplay.filterGlApi for what the returned value represents

getGlApiUnlocked
gstgl.types.GLAPI getGlApiUnlocked()
getGlContextForThread
gstgl.glcontext.GLContext getGlContextForThread(glib.thread.Thread thread)
getHandle
size_t getHandle()
getHandleType
gstgl.types.GLDisplayType getHandleType()
removeContext
void removeContext(gstgl.glcontext.GLContext context)

Must be called with the object lock held.

removeWindow
bool removeWindow(gstgl.glwindow.GLWindow window)
retrieveWindow
gstgl.glwindow.GLWindow retrieveWindow(void* data, glib.types.CompareFunc compareFunc)

Execute compare_func over the list of windows stored by display. The first argument to compare_func is the #GstGLWindow being checked and the second argument is data.

connectCreateContext
ulong connectCreateContext(T callback, Flag!"After" after)

Connect to CreateContext signal.