Fixed code formatting.

This commit is contained in:
the_fiddler 2010-10-09 19:59:06 +00:00
parent 0f80ff8f1d
commit 148578b1eb
8 changed files with 137 additions and 136 deletions

View file

@ -37,7 +37,8 @@ namespace Examples.Tutorial
#region --- Constructor --- #region --- Constructor ---
public T03_Immediate_Mode_Cube() : base(800, 600, new GraphicsMode(16, 16)) public T03_Immediate_Mode_Cube()
: base(800, 600, new GraphicsMode(16, 16))
{ } { }
#endregion #endregion

View file

@ -304,6 +304,5 @@ namespace Examples.Tutorial
example.Run(30.0, 0.0); example.Run(30.0, 0.0);
} }
} }
} }
} }

View file

@ -141,7 +141,8 @@ namespace Examples.Tutorial
// reset particle // reset particle
ParticleAttributes[i].Age = 0; ParticleAttributes[i].Age = 0;
VBO[i].Position = Vector3.Zero; VBO[i].Position = Vector3.Zero;
} else }
else
{ {
ParticleAttributes[i].Age += (uint)Math.Max(ParticleAttributes[i].Direction.LengthFast * 10, 1); ParticleAttributes[i].Age += (uint)Math.Max(ParticleAttributes[i].Direction.LengthFast * 10, 1);
Vector3.Multiply(ref ParticleAttributes[i].Direction, (float)e.Time, out temp); Vector3.Multiply(ref ParticleAttributes[i].Direction, (float)e.Time, out temp);