Esempio n. 1
0
        public static SoAssetPostprocessor Create(PostprocessorAssetType assetType)
        {
            switch (assetType)
            {
            case PostprocessorAssetType.SpriteAtlas:
                return(SoSpriteAtlasPostprocessor.Create());

            case PostprocessorAssetType.Sprite:
                return(SoSpritePostprocessor.Create());

            case PostprocessorAssetType.Texture:
                return(SoTexturePostprocessor.Create());

            case PostprocessorAssetType.Model:
                return(SoModelPostprocessor.Create());
            }

            return(null);
        }
Esempio n. 2
0
        public static SoAssetPostprocessor GetDefault(PostprocessorAssetType assetType)
        {
            switch (assetType)
            {
            case PostprocessorAssetType.SpriteAtlas:
                return(SoSpriteAtlasPostprocessor.GetDefaultSoPostprocessor());

            case PostprocessorAssetType.Sprite:
                return(SoSpritePostprocessor.GetDefaultSoPostprocessor());

            case PostprocessorAssetType.Texture:
                return(SoTexturePostprocessor.GetDefaultSoPostprocessor());

            case PostprocessorAssetType.Model:
                return(SoModelPostprocessor.GetDefaultSoPostprocessor());
            }

            return(null);
        }