mutter/examples
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
..
android/hello examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-basic-video-player.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-crate.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-emscripten-hello.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
cogl-gles2-context.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-gles2-gears.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-hello.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-info.c Add support for per-vertex point sizes 2013-06-07 16:53:29 +01:00
cogl-msaa.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-point-sprites.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-sdl2-hello.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-sdl-hello.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
cogl-x11-foreign.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-x11-tfp.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogland.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
emscripten-example-js-library.js emscripten-hello: improve mainloop integration 2013-05-29 19:30:44 +01:00
emscripten-example-js.h emscripten-hello: improve mainloop integration 2013-05-29 19:30:44 +01:00
Makefile.am Add a cogl-point-sprites example 2013-08-21 15:40:09 +01:00