mutter/tests/conform
Robert Bragg 6436cd073d Declare interface types as void and remove cast macros
This declares the interface types CoglFramebuffer, CoglBuffer,
CoglTexture, CoglMetaTexture and CoglPrimitiveTexture as void when
including the public cogl.h header so that users don't have to use lots
of C type casts between instance types and interface types.

This also removes all of the COGL_XYZ() type cast macros since they do
nothing more than compile time type casting but it's less readable if
you haven't seen that coding pattern before.

Unlike with gobject based apis that use per-type macros for casting and
performing runtime type checking we instead prefer to do our runtime
type checking internally within the front-end public apis when objects
are passed into Cogl. This greatly reduces the verbosity for users of
the api and may help reduce the chance of excessive runtime type
checking that can sometimes be a problem.

(cherry picked from commit 248a76f5eac7e5ae4fb45208577f9a55360812a7)

Since we can't break the 1.x api this version of the patch actually
defines compatible NOP macros within deprecated/cogl-type-casts.h
2013-11-27 19:33:44 +00:00
..
Makefile.am Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-alpha-test.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-alpha-textures.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-atlas-migration.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-backface-culling.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-blend-strings.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-blend.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-color-hsl.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-color-mask.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-conform-main.c conform: check we invalidate ancestor cached state 2013-10-28 16:34:57 +00:00
test-copy-replace-texture.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-custom-attributes.c gl: bind position attribute to location 0 2013-08-19 22:44:45 +01:00
test-depth-test.c Add API to control per-framebuffer depth writing 2013-10-28 16:34:58 +00:00
test-euler-quaternion.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-fence.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-fixed.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-fixtures.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-framebuffer-get-bits.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-gles2-context.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-just-vertex-shader.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-layer-remove.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-map-buffer-range.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-materials.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-multitexture.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-no-gl-header.c Don't include cogl/cogl.h from test-utils.h 2013-07-04 11:50:31 +01:00
test-npot-texture.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-object.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-offscreen.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-path.c Separate out CoglPath api into sub-library 2013-08-19 22:44:35 +01:00
test-pipeline-cache-unrefs-texture.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-pipeline-shader-state.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-pipeline-uniforms.c tests: Don't report success when the test is skipped 2013-01-22 17:48:06 +00:00
test-pipeline-user-matrix.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-pixel-buffer.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-point-size-attribute.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-point-size.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-point-sprite.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-premult.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-primitive-and-journal.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-primitive.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-read-texture-formats.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-readpixels.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-snippets.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-sparse-pipeline.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-sub-texture.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-texture-3d.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-texture-get-set-data.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-texture-mipmaps.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-texture-no-allocate.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-texture-pixmap-x11.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-rectangle.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-version.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-vertex-buffer-contiguous.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-vertex-buffer-interleved.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-vertex-buffer-mutability.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-viewport.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-wrap-modes.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-wrap-rectangle-textures.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
test-write-texture-formats.c test-write-texture-formats: Add fuzziness to the pixel comparisons 2013-01-22 18:00:11 +00:00