mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-27 00:31:03 +00:00
Fixed code formatting.
This commit is contained in:
parent
0f80ff8f1d
commit
148578b1eb
|
@ -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
|
||||||
|
|
|
@ -304,6 +304,5 @@ namespace Examples.Tutorial
|
||||||
example.Run(30.0, 0.0);
|
example.Run(30.0, 0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue