[Cogl] [PATCH 0/3] Improving webgl support

Robert Bragg robert at sixbynine.org
Thu May 30 10:08:25 PDT 2013


From: Robert Bragg <robert at linux.intel.com>

As I've started playing with building Rig's rendering engine using Emscripten
I came across some issues with how we allocate framebuffer due to webgl requiring
the use of a DEPTH_STENCIL_ATTACHMENT point instead of separate depth and stencil
attachments. This adds a new webgl driver to Cogl and makes some improvements
to how we condition various things in Cogl based on broad GL feature sets.

regards,
- Robert

Robert Bragg (3):
  generalize driver description and selection
  Adds "webgl" driver
  webgl: use DEPTH_STENCIL_ATTACHMENT

 cogl/cogl-context.c                                |   4 +-
 cogl/cogl-glsl-shader.c                            |   2 +-
 cogl/cogl-matrix-stack.c                           |   4 +-
 cogl/cogl-private.h                                |  38 ++-
 cogl/cogl-renderer-private.h                       |   1 +
 cogl/cogl-renderer.c                               | 350 +++++++++++++++------
 cogl/cogl-renderer.h                               |   4 +-
 cogl/cogl-texture-3d.c                             |   2 +-
 cogl/driver/gl/cogl-attribute-gl.c                 |   8 +-
 cogl/driver/gl/cogl-framebuffer-gl.c               |  29 +-
 cogl/driver/gl/cogl-pipeline-fragend-glsl.c        |   3 +-
 cogl/driver/gl/cogl-pipeline-opengl.c              |  16 +-
 cogl/driver/gl/cogl-pipeline-progend-fixed.c       |   2 +-
 cogl/driver/gl/gl/cogl-driver-gl.c                 |   2 +-
 .../gl/gl/cogl-pipeline-progend-fixed-arbfp.c      |   2 +-
 cogl/driver/gl/gles/cogl-driver-gles.c             |   2 +-
 configure.ac                                       |   1 +
 17 files changed, 334 insertions(+), 136 deletions(-)

-- 
1.8.2.1



More information about the Cogl mailing list