Exemple #1
0
        internal static Material2D GenerateMaterial2D(swig.Material2D o, GenerationType type)
        {
            if (o == null)
            {
                return(null);
            }
            var p = o.GetPtr();

            var existing = GC.Material2Ds.GetObject(p);

            existing = GenerateInternal(existing, o, type);
            if (existing != null)
            {
                return(existing);
            }

            var ret = new Material2D(o);

            GC.Material2Ds.AddObject(p, ret);
            return(ret);
        }