Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
[Atlas] various fixes
Browse files Browse the repository at this point in the history
Readonly param from content
Remove new from MipmapsPerSprite
Remove Debugger.Launch()
  • Loading branch information
nkast committed Apr 22, 2019
1 parent c44d981 commit 870e7e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Atlas/ContentReaders/TextureAtlasReader.cs
@@ -1,5 +1,5 @@
#region License
// Copyright 2016 Kastellanos Nikolaos
// Copyright 2016-2019 Kastellanos Nikolaos
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -26,8 +26,6 @@ public class TextureAtlasReader : ContentTypeReader<TextureAtlas>
{
protected override TextureAtlas Read(ContentReader input, TextureAtlas existingInstance)
{
System.Diagnostics.Debugger.Launch();

IGraphicsDeviceService graphicsDeviceService = (IGraphicsDeviceService)input.ContentManager.ServiceProvider.GetService(typeof(IGraphicsDeviceService));
var device = graphicsDeviceService.GraphicsDevice;

Expand Down
@@ -1,5 +1,5 @@
#region License
// Copyright 2016 Kastellanos Nikolaos
// Copyright 2016-2019 Kastellanos Nikolaos
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -43,7 +43,7 @@ public class AtlasProcessor : TextureProcessor, IContentProcessor


[DefaultValue(true)]
public new bool MipmapsPerSprite
public bool MipmapsPerSprite
{
get { return _mipmapsPerSprite; }
set { _mipmapsPerSprite = value; }
Expand Down
3 changes: 0 additions & 3 deletions Samples/AtlasContent/Samples.AtlasContent.mgcb
Expand Up @@ -24,7 +24,6 @@
#begin atlasMipmap.tmx
/importer:AtlasImporter
/processor:AtlasProcessor
/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
/processorParam:MipmapsPerSprite=False
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=False
Expand All @@ -38,7 +37,6 @@
#begin atlasMipmapPerSprite.tmx
/importer:AtlasImporter
/processor:AtlasProcessor
/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
/processorParam:MipmapsPerSprite=True
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=False
Expand All @@ -52,7 +50,6 @@
#begin atlasNoMipmap.tmx
/importer:AtlasImporter
/processor:AtlasProcessor
/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
/processorParam:MipmapsPerSprite=False
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=False
Expand Down

0 comments on commit 870e7e4

Please sign in to comment.