Beispiel #1
0
        internal static Asset CreateDefault(string copyright)
        {
            var av = AssemblyInformationalVersion;

            var generator = string.IsNullOrWhiteSpace(av) ? "SharpGLTF" : "SharpGLTF " + av;

            return(new Asset()
            {
                _generator = generator,
                _copyright = copyright,
                _version = MINVERSION.ToString(),
                _minVersion = null
            });
        }
Beispiel #2
0
        internal static Asset CreateDefault(string copyright)
        {
            var av = typeof(Asset).Assembly.GetCustomAttributes(true)
                     .OfType <System.Reflection.AssemblyInformationalVersionAttribute>()
                     .FirstOrDefault();

            var generator = av == null ? "SharpGLTF" : "SharpGLTF " + av.InformationalVersion;

            return(new Asset()
            {
                _generator = generator,
                _copyright = copyright,
                _version = MAXVERSION.ToString(),
                _minVersion = MINVERSION.ToString()
            });
        }