Commits

Reid van Melle committed 656266d

Got rid of the hack with adding empty rectangles

Comments (0)

Files changed (3)

   let stage = ClutterStage.get_default () in
   stage#set_size ~width:800 ~height:600;
   let actor = ClutterTexture.texture ~filename:"./examples/ohpowers.png" () in
-  let r = ClutterRectangle.rectangle () in
-  stage#add_actor r#as_actor;
   stage#add_actor actor#as_actor;
   actor#set_position ~x:100 ~y:100;
   actor#set_rotation `Z_AXIS ~angle:180. ~x:(actor#width / 2)
     
 let _ =
   let stage = ClutterStage.get_default () in
-  let r = ClutterRectangle.rectangle () in
-  stage#add_actor r#as_actor;
 
   let group = ClutterGroup.group ()
   and group2 = ClutterGroup.group () in
 open Clutter
 let _ =
   let stage = ClutterStage.get_default () in
-  let r = ClutterRectangle.rectangle () in
-  stage#add_actor r#as_actor;
   let actor = ClutterTexture.texture ~filename:"./examples/ohpowers.png" () in
   stage#add_actor actor#as_actor;
   let timeline = ClutterTimeline.timeline ~num_frames:100 ~fps:5 () in