mutter/cogl/driver/gl
Robert Bragg 0f5f4e8645 cogl: improves header and coding style consistency
We've had complaints that our Cogl code/headers are a bit "special" so
this is a first pass at tidying things up by giving them some
consistency. These changes are all consistent with how new code in Cogl
is being written, but the style isn't consistently applied across all
code yet.

There are two parts to this patch; but since each one required a large
amount of effort to maintain tidy indenting it made sense to combine the
changes to reduce the time spent re indenting the same lines.

The first change is to use a consistent style for declaring function
prototypes in headers. Cogl headers now consistently use this style for
prototypes:

 return_type
 cogl_function_name (CoglType arg0,
                     CoglType arg1);

Not everyone likes this style, but it seems that most of the currently
active Cogl developers agree on it.

The second change is to constrain the use of redundant glib data types
in Cogl. Uses of gint, guint, gfloat, glong, gulong and gchar have all
been replaced with int, unsigned int, float, long, unsigned long and char
respectively. When talking about pixel data; use of guchar has been
replaced with guint8, otherwise unsigned char can be used.

The glib types that we continue to use for portability are gboolean,
gint{8,16,32,64}, guint{8,16,32,64} and gsize.

The general intention is that Cogl should look palatable to the widest
range of C programmers including those outside the Gnome community so
- especially for the public API - we want to minimize the number of
foreign looking typedefs.
2010-02-12 14:05:00 +00:00
..
cogl-context-driver.c cogl: Make it easier to add checks for GL extensions 2009-11-17 15:11:26 +00:00
cogl-context-driver.h cogl: Use APIENTRY for GL function pointer declarations 2009-11-18 19:24:09 +00:00
cogl-defines.h.in cogl: Remove the CGL_* defines 2010-01-12 17:10:15 +00:00
cogl-feature-functions.h cogl-pixel-buffer: Add a fallback path 2010-02-08 17:14:49 +00:00
cogl-program.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-program.h Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-shader-private.h Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-shader.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-driver.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
Makefile.am build: Add cogl-feature-functions.h to the dist 2009-11-18 14:43:46 +00:00