Commits

Reid van Melle  committed 656266d

Got rid of the hack with adding empty rectangles

  • Participants
  • Parent commits 253e9d2

Comments (0)

Files changed (3)

File examples/actor1.ml

   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)

File examples/actor2.ml

     
 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

File examples/behave.ml

 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