2007-05-31 Matthew Allum <mallum@openedhand.com>

* clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        Add clutter_actor_get_transformed_point()

        * clutter/clutter-main.c:
        Plug in perspective setup to redraw

        * clutter/clutter-stage.c:
        * clutter/clutter-stage.h:
        Remove audience code for now.
This commit is contained in:
Matthew Allum
2007-05-31 17:11:09 +00:00
parent 4d8bf8f3b8
commit fb6d22f95d
6 changed files with 104 additions and 122 deletions

View File

@ -119,12 +119,16 @@ clutter_redraw (void)
*/
if (CLUTTER_PRIVATE_FLAGS (stage) & CLUTTER_ACTOR_SYNC_MATRICES)
{
ClutterPerspective perspective;
clutter_stage_get_perspectivex (stage, &perspective);
cogl_setup_viewport (clutter_actor_get_width (stage),
clutter_actor_get_height (stage),
171, /* 60 degrees */
CFX_ONE,
CLUTTER_FLOAT_TO_FIXED (0.1),
CLUTTER_FLOAT_TO_FIXED (100.0));
perspective.fovy,
perspective.aspect,
perspective.z_near,
perspective.z_far);
}
/* Setup the initial paint */