Untitled

By Beige Leopard, 11 Years ago, written in C++, viewed 681 times.
URL http://pb.stoleyour.com/view/5bfca87b Embed
Download Paste or View RawExpand paste to full width of browser
  1.         protected void Timer_Tick(object sender, EventArgs eArgs)
  2.         {
  3.             if (sender == timer)
  4.             {
  5.                 if (RotSelected == RotationType.ROT_AROUND_X)
  6.                 {
  7.                     AppendRotationX(0.05);
  8.                 }
  9.                 else if (RotSelected == RotationType.ROT_AROUND_Y)
  10.                 {
  11.                     AppendRotationY(0.05);
  12.                 }
  13.                 else if (RotSelected == RotationType.ROT_AROUND_Z)
  14.                 {
  15.                     AppendRotationZ(0.05);
  16.                 }
  17.                 else if (RotSelected == RotationType.ROT_AROUND_XY)
  18.                 {
  19.                     AppendRotationX(0.05);
  20.                     AppendRotationY(0.05);
  21.                 }
  22.                 else if (RotSelected == RotationType.ROT_AROUND_XZ)
  23.                 {
  24.                     AppendRotationX(0.05);
  25.                     AppendRotationZ(0.05);
  26.                 }
  27.                 else if (RotSelected == RotationType.ROT_AROUND_YZ)
  28.                 {
  29.                     AppendRotationY(0.05);
  30.                     AppendRotationZ(0.05);
  31.                 }
  32.  
  33.                 Refresh();
  34.             }
  35.         }

Reply to "Untitled"

Here you can reply to the paste above