...and once again some more content classes for the ContentPipeline...

This commit is contained in:
Glatzemann 2012-08-16 13:00:16 +00:00
parent acea318a8a
commit 6b1463d036
10 changed files with 373 additions and 0 deletions

View File

@ -35,7 +35,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Graphics\AlphaTestMaterialContent.cs" /> <Compile Include="Graphics\AlphaTestMaterialContent.cs" />
<Compile Include="Graphics\BasicMaterialContent.cs" />
<Compile Include="Graphics\BitmapContent.cs" /> <Compile Include="Graphics\BitmapContent.cs" />
<Compile Include="Graphics\BoneContent.cs" />
<Compile Include="Graphics\BoneWeight.cs" /> <Compile Include="Graphics\BoneWeight.cs" />
<Compile Include="ChildCollection.cs" /> <Compile Include="ChildCollection.cs" />
<Compile Include="ContentBuildLogger.cs" /> <Compile Include="ContentBuildLogger.cs" />
@ -55,7 +57,14 @@
<Compile Include="Graphics\AnimationContent.cs" /> <Compile Include="Graphics\AnimationContent.cs" />
<Compile Include="Graphics\AnimationContentDictionary.cs" /> <Compile Include="Graphics\AnimationContentDictionary.cs" />
<Compile Include="Graphics\AnimationKeyframe.cs" /> <Compile Include="Graphics\AnimationKeyframe.cs" />
<Compile Include="Graphics\BoneWeightCollection.cs" />
<Compile Include="Graphics\Dxt1BitmapContent.cs" />
<Compile Include="Graphics\DxtBitmapContent.cs" />
<Compile Include="Graphics\EffectContent.cs" /> <Compile Include="Graphics\EffectContent.cs" />
<Compile Include="Graphics\DualTextureMaterialContent.cs" />
<Compile Include="Graphics\Dxt3BitmapContent.cs" />
<Compile Include="Graphics\Dxt5BitmapContent.cs" />
<Compile Include="Graphics\EffectMaterialContent.cs" />
<Compile Include="Graphics\MaterialContent.cs" /> <Compile Include="Graphics\MaterialContent.cs" />
<Compile Include="Graphics\MipmapChain.cs" /> <Compile Include="Graphics\MipmapChain.cs" />
<Compile Include="Graphics\MipmapChainCollection.cs" /> <Compile Include="Graphics\MipmapChainCollection.cs" />
@ -67,6 +76,7 @@
<Compile Include="IContentProcessor.cs" /> <Compile Include="IContentProcessor.cs" />
<Compile Include="NamedValueDictionary.cs" /> <Compile Include="NamedValueDictionary.cs" />
<Compile Include="OpaqueDataDictionary.cs" /> <Compile Include="OpaqueDataDictionary.cs" />
<Compile Include="Processors\CompiledEffectContent.cs" />
<Compile Include="Serialization\Compiler\BuiltInTypeWriter.cs" /> <Compile Include="Serialization\Compiler\BuiltInTypeWriter.cs" />
<Compile Include="Serialization\Compiler\ContentCompiler.cs" /> <Compile Include="Serialization\Compiler\ContentCompiler.cs" />
<Compile Include="Serialization\Compiler\ContentTypeWriter.cs" /> <Compile Include="Serialization\Compiler\ContentTypeWriter.cs" />
@ -109,6 +119,7 @@
<Name>ANX.Framework</Name> <Name>ANX.Framework</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -0,0 +1,71 @@
#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 BasicMaterialContent : MaterialContent
{
public const string AlphaKey = "";
public const string DiffuseColorKey = "";
public const string EmissiveColorKey = "";
public const string SpecularColorKey = "";
public const string SpecularPowerKey = "";
public const string TextureKey = "";
public const string VertexColorEnabledKey = "";
public BasicMaterialContent()
{
}
public Nullable<float> Alpha
{
get;
set;
}
public Nullable<Vector3> DiffuseColor
{
get;
set;
}
public Nullable<Vector3> EmissiveColor
{
get;
set;
}
public Nullable<Vector3> SpecularColor
{
get;
set;
}
public Nullable<float> SpecularPower
{
get;
set;
}
public ExternalReference<TextureContent> Texture
{
get;
set;
}
public Nullable<bool> VertexColorEnabled
{
get;
set;
}
}
}

View File

@ -0,0 +1,23 @@
#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 BoneContent : NodeContent
{
public BoneContent()
{
}
}
}

View File

@ -0,0 +1,33 @@
#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 class BoneWeightCollection : Collection<BoneWeight>
{
public BoneWeightCollection()
{
}
public void NormalizeWeights()
{
throw new NotImplementedException();
}
public void NormalizeWeights(int maxWeights)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,57 @@
#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 DualTextureMaterialContent : MaterialContent
{
public const string AlphaKey = "";
public const string DiffuseColorKey = "";
public const string Texture2Key = "";
public const string TextureKey = "";
public const string VertexColorEnabledKey = "";
public DualTextureMaterialContent()
{
}
public Nullable<float> Alpha
{
get;
set;
}
public Nullable<Vector3> DiffuseColor
{
get;
set;
}
public ExternalReference<TextureContent> Texture
{
get;
set;
}
public ExternalReference<TextureContent> Texture2
{
get;
set;
}
public Nullable<bool> VertexColorEnabled
{
get;
set;
}
}
}

View File

@ -0,0 +1,29 @@
#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 Dxt1BitmapContent : DxtBitmapContent
{
public Dxt1BitmapContent(int width, int height)
: base(-1, width, height) //TODO: blockSize
{
throw new NotImplementedException();
}
public override bool TryGetFormat(out SurfaceFormat format)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,29 @@
#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 Dxt3BitmapContent : DxtBitmapContent
{
public Dxt3BitmapContent(int width, int height)
: base(-1, width, height) //TODO: blockSize
{
throw new NotImplementedException();
}
public override bool TryGetFormat(out SurfaceFormat format)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,29 @@
#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 Dxt5BitmapContent : DxtBitmapContent
{
public Dxt5BitmapContent(int width, int height)
: base(-1, width, height) //TODO: blockSize
{
throw new NotImplementedException();
}
public override bool TryGetFormat(out SurfaceFormat format)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,53 @@
#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 DxtBitmapContent : BitmapContent
{
protected DxtBitmapContent(int blockSize)
{
throw new NotImplementedException();
}
protected DxtBitmapContent(int blockSize, int width, int height)
: base(width, height)
{
throw new NotImplementedException();
}
public override byte[] GetPixelData()
{
throw new NotImplementedException();
}
public override void SetPixelData(byte[] sourceData)
{
throw new NotImplementedException();
}
protected override bool TryCopyFrom(BitmapContent sourceBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
{
throw new NotImplementedException();
}
protected override bool TryCopyTo(BitmapContent destinationBitmap, Rectangle sourceRegion, Rectangle destinationRegion)
{
throw new NotImplementedException();
}
public override bool TryGetFormat(out Framework.Graphics.SurfaceFormat format)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,38 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANX.Framework.Content.Pipeline.Processors;
#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 EffectMaterialContent : MaterialContent
{
public const string CompiledEffectKey = "";
public const string EffectKey = "";
public EffectMaterialContent()
{
}
[ContentSerializerIgnore]
public ExternalReference<CompiledEffectContent> CompiledEffect
{
get;
set;
}
public ExternalReference<EffectContent> Effect
{
get;
set;
}
}
}