Exemplo n.º 1
0
def check_support():
    ptr = get_display_ptr()
    if not ptr:
        from xpra.x11.gtk_x11.gdk_display_source import init_gdk_display_source  #@UnresolvedImport, @UnusedImport
        init_gdk_display_source()

    return GLContext().check_support()
Exemplo n.º 2
0
def check_support():
    from xpra.os_util import PYTHON3
    ptr = get_display_ptr()
    if not ptr:
        if PYTHON3:
            from xpra.x11.gtk3.gdk_display_source import init_gdk_display_source  #@UnresolvedImport, @UnusedImport
        else:
            from xpra.x11.gtk2.gdk_display_source import init_gdk_display_source  #@UnresolvedImport, @Reimport
        init_gdk_display_source()

    return GLContext().check_support()
Exemplo n.º 3
0
def get_xdisplay():
    ptr = get_display_ptr()
    assert ptr, "no X11 display registered"
    from OpenGL.raw.GLX._types import struct__XDisplay
    return cast(ptr, POINTER(struct__XDisplay))