mutter/cogl
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
..
driver cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
winsys build: Make COGL pass distcheck 2009-10-23 13:38:40 +01:00
cogl-atlas-texture-private.h cogl: Add an atlased texture backend 2009-12-04 20:26:39 +00:00
cogl-atlas-texture.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-atlas.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-atlas.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-bitmap-fallback.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-bitmap-pixbuf.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-bitmap-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-bitmap.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-bitmap.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-blend-string.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-blend-string.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-buffer-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-buffer.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-buffer.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-clip-stack.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-clip-stack.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-color.c Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-color.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-context.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-context.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-debug.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-debug.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-deprecated.h Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-enum-types.c.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-enum-types.h.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-feature-private.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-feature-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-fixed.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-fixed.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-framebuffer-private.h cogl: Support multiple fallbacks in cogl_offscreen_new_to_texture() 2010-01-11 15:32:52 +00:00
cogl-framebuffer.c cogl-framebuffer: Return gboolean from try_creating_fbo 2010-01-14 14:10:05 +00:00
cogl-handle.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-internal.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-journal-private.h cogl: Make the callback for foreach_sub_texture_in_region use const 2009-12-02 22:03:08 +00:00
cogl-journal.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-material-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-material.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-material.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-matrix-mesa.c Remove a gtk-doc annotation 2009-12-02 11:37:13 +00:00
cogl-matrix-mesa.h docs: Remove non-gtk-doc annotations 2009-11-19 13:55:46 +00:00
cogl-matrix-private.h [debug] Adds a COGL_DEBUG=matrices debug option 2009-11-04 03:34:04 +00:00
cogl-matrix-stack.c Fix some compiler warnings 2010-02-09 16:58:03 +00:00
cogl-matrix-stack.h build: Move CoglMatrixMode to cogl-matrix-stack.h 2010-01-04 11:58:32 +00:00
cogl-matrix.c [matrix] Adds cogl_matrix_get_inverse API 2009-11-04 03:34:05 +00:00
cogl-matrix.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-offscreen.h cogl_offscreen: deprecate cogl_offscreen_ref/unref. 2009-11-26 19:33:13 +00:00
cogl-path.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-pixel-buffer-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-pixel-buffer.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-pixel-buffer.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-primitives.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-primitives.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-profile.c profiling: Adds initial UProf accounting to Cogl 2010-01-08 20:19:50 +00:00
cogl-profile.h profiling: Adds initial UProf accounting to Cogl 2010-01-08 20:19:50 +00:00
cogl-shader.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-spans.c [cogl-spans] split out cogl-spans code from cogl-texture-2d-sliced 2009-10-16 18:58:52 +01:00
cogl-spans.h [cogl-spans] split out cogl-spans code from cogl-texture-2d-sliced 2009-10-16 18:58:52 +01:00
cogl-sub-texture-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-sub-texture.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-2d-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-2d-sliced-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-2d-sliced.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-2d.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture-driver.h cogl: new textures sould have GL_TEXTURE_MIN_FILTER set to GL_LINEAR 2010-02-08 17:14:49 +00:00
cogl-texture-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-texture.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-types.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-util.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-util.h cogl: Add a fallback for when the signbit macro is missing 2010-02-11 15:59:53 +00:00
cogl-vertex-buffer-private.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-vertex-buffer.c cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl-vertex-buffer.h 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
cogl.h cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
cogl.pc.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
Makefile.am cogl-pixel-buffer: add a pixel buffer object class 2010-02-08 17:14:49 +00:00
stb_image.c Covert stb_image.c to Unix format 2010-01-05 18:02:29 +00:00