Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ParticleUtils.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace SiliconStudio.Paradox.Effects
4 {
5  static class ParticleUtils
6  {
7  public static int CalculateMaximumPowerOf2Count(int value)
8  {
9  return (int)Math.Pow(2.0, Math.Ceiling(Math.Log(value, 2)));
10  }
11  }
12 }
static int CalculateMaximumPowerOf2Count(int value)
Definition: ParticleUtils.cs:7