2012-08-16 13:00:16 +00:00
|
|
|
|
#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
|
|
|
|
|
{
|
2015-04-08 14:50:03 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides support for representing DirectX <see cref="Effect"/> materials.
|
|
|
|
|
/// </summary>
|
2012-08-16 13:00:16 +00:00
|
|
|
|
public class EffectMaterialContent : MaterialContent
|
|
|
|
|
{
|
2015-04-08 14:50:03 +02:00
|
|
|
|
public const string CompiledEffectKey = "CompiledEffect";
|
|
|
|
|
public const string EffectKey = "Effect";
|
2012-08-16 13:00:16 +00:00
|
|
|
|
|
|
|
|
|
public EffectMaterialContent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ContentSerializerIgnore]
|
|
|
|
|
public ExternalReference<CompiledEffectContent> CompiledEffect
|
|
|
|
|
{
|
2015-04-08 14:50:03 +02:00
|
|
|
|
get { return this.GetReferenceTypeProperty<ExternalReference<CompiledEffectContent>>(CompiledEffectKey); }
|
|
|
|
|
set { this.SetProperty(CompiledEffectKey, value); }
|
2012-08-16 13:00:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-04-08 14:50:03 +02:00
|
|
|
|
[ContentSerializerIgnore]
|
2012-08-16 13:00:16 +00:00
|
|
|
|
public ExternalReference<EffectContent> Effect
|
|
|
|
|
{
|
2015-04-08 14:50:03 +02:00
|
|
|
|
get { return this.GetReferenceTypeProperty<ExternalReference<EffectContent>>(EffectKey); }
|
|
|
|
|
set { this.SetProperty(EffectKey, value); }
|
2012-08-16 13:00:16 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|