more content for the ContentPipeline...

This commit is contained in:
Glatzemann 2012-08-16 12:04:46 +00:00
parent 3342363c6d
commit acea318a8a
8 changed files with 309 additions and 0 deletions

View File

@ -34,6 +34,8 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Graphics\AlphaTestMaterialContent.cs" />
<Compile Include="Graphics\BitmapContent.cs" />
<Compile Include="Graphics\BoneWeight.cs" />
<Compile Include="ChildCollection.cs" />
<Compile Include="ContentBuildLogger.cs" />
@ -54,8 +56,13 @@
<Compile Include="Graphics\AnimationContentDictionary.cs" />
<Compile Include="Graphics\AnimationKeyframe.cs" />
<Compile Include="Graphics\EffectContent.cs" />
<Compile Include="Graphics\MaterialContent.cs" />
<Compile Include="Graphics\MipmapChain.cs" />
<Compile Include="Graphics\MipmapChainCollection.cs" />
<Compile Include="Graphics\NodeContent.cs" />
<Compile Include="Graphics\NodeContentCollection.cs" />
<Compile Include="Graphics\TextureContent.cs" />
<Compile Include="Graphics\TextureReferenceDictionary.cs" />
<Compile Include="IContentImporter.cs" />
<Compile Include="IContentProcessor.cs" />
<Compile Include="NamedValueDictionary.cs" />

View File

@ -0,0 +1,65 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANX.Framework.Graphics;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public class AlphaTestMaterialContent : MaterialContent
{
public const string AlphaFunctionKey = "";
public const string AlphaKey = "";
public const string DiffuseColorKey = "";
public const string ReferenceAlphaKey = "";
public const string TextureKey = "";
public const string VertexColorEnabledKey = "";
public AlphaTestMaterialContent()
{
}
public Nullable<float> Alpha
{
get;
set;
}
public Nullable<CompareFunction> AlphaFunction
{
get;
set;
}
public Nullable<Vector3> DiffuseColor
{
get;
set;
}
public Nullable<int> ReferenceAlpha
{
get;
set;
}
public ExternalReference<TextureContent> Texture
{
get;
set;
}
public Nullable<bool> VertexColorEnabled
{
get;
set;
}
}
}

View File

@ -0,0 +1,71 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANX.Framework.Graphics;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public abstract class BitmapContent : ContentItem
{
public BitmapContent()
{
}
protected BitmapContent(int width, int height)
{
Width = width;
Height = height;
}
public int Height
{
get;
set;
}
public int Width
{
get;
set;
}
public static void Copy(BitmapContent sourceBitmap, BitmapContent destinationBitmap)
{
throw new NotImplementedException();
}
public static void Copy(BitmapContent sourceBitmap, Rectangle sourceRegion, BitmapContent destinationBitmap, Rectangle destinationRegion)
{
throw new NotImplementedException();
}
public abstract byte[] GetPixelData();
public abstract void SetPixelData(byte[] sourceData);
public abstract bool TryGetFormat(out SurfaceFormat format);
public override string ToString()
{
throw new NotImplementedException();
}
protected abstract bool TryCopyFrom(BitmapContent sourceBitmap, Rectangle sourceRegion, Rectangle destinationRegion);
protected abstract bool TryCopyTo(BitmapContent destinationBitmap, Rectangle sourceRegion, Rectangle destinationRegion);
protected static void ValidateCopyArguments(BitmapContent sourceBitmap, Rectangle sourceRegion, BitmapContent destinationBitmap, Rectangle destinationRegion)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,52 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public class MaterialContent : ContentItem
{
public MaterialContent()
{
}
public TextureReferenceDictionary Textures
{
get;
private set;
}
protected T GetReferenceTypeProperty<T>(string key) where T : class
{
throw new NotImplementedException();
}
protected ExternalReference<TextureContent> GetTexture(String key)
{
throw new NotImplementedException();
}
protected Nullable<T> GetValueTypeProperty<T>(string key) where T : struct
{
throw new NotImplementedException();
}
protected void SetProperty<T>(string key, T value)
{
throw new NotImplementedException();
}
protected void SetTexture(String key, ExternalReference<TextureContent> value)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,32 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public sealed class MipmapChain : Collection<BitmapContent>
{
public MipmapChain()
{
}
public MipmapChain(BitmapContent bitmap)
{
throw new NotImplementedException();
}
public static MipmapChain op_Implicit(BitmapContent bitmap)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,19 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public sealed class MipmapChainCollection : Collection<MipmapChain>
{
}
}

View File

@ -0,0 +1,41 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANX.Framework.Graphics;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public abstract class TextureContent : ContentItem
{
protected TextureContent(MipmapChainCollection faces)
{
Faces = faces;
}
public MipmapChainCollection Faces
{
get;
private set;
}
public void ConvertBitmapType(Type newBitmapType)
{
throw new NotImplementedException();
}
public virtual void GenerateMipmaps(bool overwriteExistingMipmaps)
{
throw new NotImplementedException();
}
public abstract void Validate(Nullable<GraphicsProfile> targetProfile);
}
}

View File

@ -0,0 +1,22 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Graphics
{
public sealed class TextureReferenceDictionary : NamedValueDictionary<ExternalReference<TextureContent>>
{
public TextureReferenceDictionary()
{
}
}
}