[cairo] [PATCH 0/6] Replace built-in shader variables with custom variables

alexandros.frantzis at linaro.org alexandros.frantzis at linaro.org
Tue Feb 8 03:10:09 PST 2011

From: Alexandros Frantzis <alexandros.frantzis at linaro.org>


This patchset removes built-in shader variables (uniforms and vertex
attributes) and replaces them with custom ones. This is done in order to make
the source compatible with more GL versions and variants (including GLES2.0).

You can find the 'gl-replace-builtin-shader-variables' branch at:




Alexandros Frantzis (6):
  gl: Add entry for UniformMatrix4fv in the gl dispatch table
  gl: Add function to bind a 4x4 float matrix shader uniform
  gl: Replace ftransform() with manual coordinate calculation in
  gl: Use a custom shader uniform for the ModelViewProjection matrix
  gl: Add gl dispatch entries for functions related to vertex
  gl: Replace built-in vertex attributes with custom attributes

 src/cairo-gl-composite.c        |   44 +++++++++++++++++--------------
 src/cairo-gl-device.c           |   53 +++++++++++++++++++++++++++++++++-----
 src/cairo-gl-dispatch-private.h |    8 ++++++
 src/cairo-gl-private.h          |   27 ++++++++++++++++++++
 src/cairo-gl-shaders.c          |   47 ++++++++++++++++++++++++++++++++--
 5 files changed, 149 insertions(+), 30 deletions(-)


More information about the cairo mailing list