CSharpGL.BlendFactorHelper.BlendFactorHelper C# (CSharp) Method

BlendFactorHelper() static private method

static private BlendFactorHelper ( ) : System
return System
        static BlendFactorHelper()
        {
            {
                Array sources = Enum.GetValues(typeof(BlendingSourceFactor));
                sourceFactors = new BlendingSourceFactor[sources.Length];
                int i = 0;
                foreach (var item in sources)
                {
                    sourceFactors[i++] = (BlendingSourceFactor)item;
                }
            }

            {
                Array dests = Enum.GetValues(typeof(BlendingDestinationFactor));
                destFactors = new BlendingDestinationFactor[dests.Length];
                int i = 0;
                foreach (var item in dests)
                {
                    destFactors[i++] = (BlendingDestinationFactor)item;
                }
            }
        }