看这个简单的例子:#include <clutter/clutter.h>
static gpointer
gen_slide (gpointer data)
{
return clutter_cairo_texture_new (800.0, 600.0);
}
static gboolean
on_stage_button_press (ClutterActor *stage, ClutterEvent *event, gpointer data)
{
g_thread_new ("test", gen_slide, NULL);
return TRUE;
}
int
main(int argc, char *argv[])
{
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
return 1;
ClutterColor stage_color = { 0x21, 0x43, 0x5e, 0xff };
ClutterActor *stage = clutter_stage_get_default ();
clut
...
继续阅读
(20)