A comparison of gl/cogl-texture.c and gles/cogl-texture.c, to reduce
authorRobert Bragg <bob@openedhand.com>
Tue, 18 Nov 2008 16:24:09 +0000 (16:24 +0000)
committerRobert Bragg <bob@openedhand.com>
Tue, 18 Nov 2008 16:24:09 +0000 (16:24 +0000)
commit39aa5c27b51bcec226d8978e2bf4568d91dcc437
treeac9b6cb629116844892fd601dd003dfdad242255
parent41ec02c8b5c8cfc3977e3cd03bbe7c1445dffeeb
A comparison of gl/cogl-texture.c and gles/cogl-texture.c, to reduce
differences and improve maintainability.

* clutter/cogl/gl/cogl-context.h:
Adds a CoglTextureGLVertex typedef + texture_vertices and
texture_vertices_size members to CoglContext for using vertex arrays
like GLES does

* clutter/cogl/gl/cogl-context.c:
Initializes texture_vertices + texture_vertices_size members

* clutter/cogl/gl/cogl-internal.h:
Adds COGL_ENABLE_COLOR_ARRAY

* clutter/cogl/gl/cogl.c:
Add COGL_ENABLE_COLOR_ARRAY support to cogl_enable

* clutter/cogl/gles/cogl-context.h:
Change the CoglTextureGLVertex to use GLfloat for the position
and texture coord attributes and GLubyte for the color.

* clutter/cogl/gles/cogl-texture-private.h:
Adds a wrap_mode member like GL has.

* clutter/cogl/gl/cogl-texture.c
* clutter/cogl/gles/cogl-texture.c:
Improves the comparability of the files, such that the remaining
differences, better reflect the fundamental differences needed
between GL and GLES. Notably GL no longer uses glBegin/glEnd for
submitting vertices, it uses vertex arrays like GLES and this gives
a small but measurable fps improvement for test-text.
ChangeLog
clutter/cogl/gl/cogl-context.c
clutter/cogl/gl/cogl-context.h
clutter/cogl/gl/cogl-internal.h
clutter/cogl/gl/cogl-texture.c
clutter/cogl/gl/cogl.c
clutter/cogl/gles/cogl-context.h
clutter/cogl/gles/cogl-texture-private.h
clutter/cogl/gles/cogl-texture.c