Add support for setting up stereo CoglOnscreens

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

If we want to show quad-buffer stereo with Cogl, we need to pick an appropriate fbconfig for creating the CoglOnscreen objects. Add cogl_onscreen_template_set_stereo_enabled() to indicate whether stereo support is needed.

Add cogl_framebuffer_get_stereo_mode() to see if a framebuffer was created with stereo support.

Add cogl_framebuffer_get_stereo_mode() to pick whether to draw to the left, right, or both buffers.

b5b8ab9 Add support for setting up stereo CoglOnscreens
cogl/cogl-context-private.h | 1 +
cogl/cogl-framebuffer-private.h | 8 +++-
cogl/cogl-framebuffer.c | 41 ++++++++++++++++++
cogl/cogl-framebuffer.h | 52 +++++++++++++++++++++++
cogl/cogl-onscreen-template.c | 8 ++++
cogl/cogl-onscreen-template.h | 19 +++++++++
cogl/cogl-types.h | 15 +++++++
cogl/driver/gl/cogl-framebuffer-gl.c | 36 ++++++++++++++++
cogl/winsys/cogl-winsys-glx-feature-functions.h | 1 +
cogl/winsys/cogl-winsys-glx.c | 8 +++-
10 files changed, 186 insertions(+), 3 deletions(-)

Upstream: developer.gnome.org


  • Share