CoglTexturePixmapX11: add support for stereo content

Desktop / GNOME / COGL - Owen W. Taylor [fishsoup.net] - 17 July 2014 18:13 UTC

Add cogl_texture_pixmap_x11_new_left() and cogl_texture_pixmap_x11_new_right() (which takes the left texture as an argument) for texture pixmap rendering with stereo content. The underlying GLXPixmap is created using a stereo visual and shared between the left and right textures.

d76f9d1 CoglTexturePixmapX11: add support for stereo content
cogl/cogl-glx-display-private.h | 3 +-
cogl/winsys/cogl-texture-pixmap-x11-private.h | 18 ++++
cogl/winsys/cogl-texture-pixmap-x11.c | 99 ++++++++++++++++++++--
cogl/winsys/cogl-texture-pixmap-x11.h | 56 ++++++++++++
cogl/winsys/cogl-winsys-egl-x11.c | 4 +-
cogl/winsys/cogl-winsys-glx.c | 113 +++++++++++++++++--------
cogl/winsys/cogl-winsys-private.h | 4 +-
7 files changed, 253 insertions(+), 44 deletions(-)

Upstream: developer.gnome.org


  • Share