cogl-material: Add support for point sprites
authorNeil Roberts <neil@linux.intel.com>
Mon, 22 Mar 2010 13:33:55 +0000 (13:33 +0000)
committerRobert Bragg <robert@linux.intel.com>
Thu, 8 Jul 2010 15:34:30 +0000 (16:34 +0100)
commitab05f6bfb1493bb1a6d17c79656c0efef21da5e1
tree6db6835015094b4a4989bf3df03809ac1aec372c
parent73642ac9c435709e79c62973fd0523494b9b14fb
cogl-material: Add support for point sprites

This adds a new API call to enable point sprite coordinate generation
for a material layer:

void
cogl_material_set_layer_point_sprite_coords_enabled (CoglHandle material,
                                                     int layer_index,
                                                     gboolean enable);

There is also a corresponding get function.

Enabling point sprite coords simply sets the GL_COORD_REPLACE of the
GL_POINT_SPRITE glTexEnv when flusing the material. There is no
separate application control for glEnable(GL_POINT_SPRITE). Instead it
is left permanently enabled under the assumption that it has no affect
unless GL_COORD_REPLACE is enabled for a texture unit.

http://bugzilla.openedhand.com/show_bug.cgi?id=2047
clutter/cogl/cogl/cogl-context.c
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c
clutter/cogl/cogl/cogl-material.h
clutter/cogl/cogl/cogl-types.h
clutter/cogl/cogl/driver/gl/cogl-feature-functions.h
clutter/cogl/cogl/driver/gles/cogl-gles2-wrapper.c
clutter/cogl/cogl/driver/gles/cogl-gles2-wrapper.h
clutter/cogl/cogl/driver/gles/cogl.c
doc/reference/cogl/cogl-sections.txt