cogl-vertex-buffer: Add support for unsigned int indices
authorNeil Roberts <neil@linux.intel.com>
Tue, 23 Feb 2010 14:45:44 +0000 (14:45 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 26 Feb 2010 10:56:35 +0000 (10:56 +0000)
commit5d8346829585bb4b6d4617a232f87e3dab4eee5f
treef74a1c5aec4d60f7f83918f35ca0e9321945f6f8
parent67d9d928147aa59905960480a5d0b4c19c9d1920
cogl-vertex-buffer: Add support for unsigned int indices

This adds a COGL_INDICES_TYPE_UNSIGNED_INT enum value so that unsigned
ints can be used with cogl_vertex_buffer_indices_new.  Unsigned ints
are not supported in core on GLES so a feature flag has also been
added to advertise this. GLES only sets the feature if the
GL_OES_element_index_uint extension is available. It is an error to
call indices_new() with unsigned ints unless the feature is
advertised.

http://bugzilla.openedhand.com/show_bug.cgi?id=1998
clutter/cogl/cogl/cogl-types.h
clutter/cogl/cogl/cogl-vertex-buffer.c
clutter/cogl/cogl/cogl-vertex-buffer.h
clutter/cogl/cogl/driver/gl/cogl.c
clutter/cogl/cogl/driver/gles/cogl-feature-functions.h