anx.framework/ANX.Framework/Graphics/EffectAnnotation.cs

94 lines
2.2 KiB
C#
Raw Normal View History

2011-10-31 05:36:24 +00:00
using System;
2012-10-10 19:26:53 +00:00
using ANX.Framework.NonXNA.Development;
using ANX.Framework.NonXNA.RenderSystem;
2011-10-31 05:36:24 +00:00
// 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
2011-10-31 05:36:24 +00:00
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[Developer("AstrorEnales")]
2012-10-10 19:26:53 +00:00
[TestState(TestStateAttribute.TestState.Untested)]
2011-10-31 05:36:24 +00:00
public sealed class EffectAnnotation
{
private readonly INativeEffectAnnotation nativeAnnotation;
public int ColumnCount
{
get { return nativeAnnotation.ColumnCount; }
}
public string Name
{
get { return nativeAnnotation.Name; }
}
public EffectParameterClass ParameterClass
{
get { return nativeAnnotation.ParameterClass; }
}
public EffectParameterType ParameterType
{
get { return nativeAnnotation.ParameterType; }
}
public int RowCount
{
get { return nativeAnnotation.RowCount; }
}
public string Semantic
{
get { return nativeAnnotation.Semantic; }
}
2011-10-31 05:36:24 +00:00
internal EffectAnnotation(INativeEffectAnnotation setNativeAnnotation)
{
nativeAnnotation = setNativeAnnotation;
}
2011-10-31 05:36:24 +00:00
public bool GetValueBoolean()
{
return nativeAnnotation.GetValueBoolean();
2011-10-31 05:36:24 +00:00
}
public int GetValueInt32()
{
return nativeAnnotation.GetValueInt32();
2011-10-31 05:36:24 +00:00
}
public Matrix GetValueMatrix()
{
return nativeAnnotation.GetValueMatrix();
2011-10-31 05:36:24 +00:00
}
public float GetValueSingle()
{
return nativeAnnotation.GetValueSingle();
2011-10-31 05:36:24 +00:00
}
public string GetValueString()
{
return nativeAnnotation.GetValueString();
2011-10-31 05:36:24 +00:00
}
public Vector2 GetValueVector2()
{
return nativeAnnotation.GetValueVector2();
2011-10-31 05:36:24 +00:00
}
public Vector3 GetValueVector3()
{
return nativeAnnotation.GetValueVector3();
2011-10-31 05:36:24 +00:00
}
public Vector4 GetValueVector4()
{
return nativeAnnotation.GetValueVector4();
2011-10-31 05:36:24 +00:00
}
}
}