2011-10-31 05:36:24 +00:00
|
|
|
using System;
|
2012-10-10 19:26:53 +00:00
|
|
|
using ANX.Framework.NonXNA.Development;
|
2012-10-13 13:12:07 +00:00
|
|
|
using ANX.Framework.NonXNA.RenderSystem;
|
2011-10-31 05:36:24 +00:00
|
|
|
|
2012-08-09 09:45:04 +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
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
[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
|
2012-10-13 13:12:07 +00:00
|
|
|
{
|
|
|
|
private readonly INativeEffectAnnotation nativeAnnotation;
|
|
|
|
|
2012-09-04 08:31:17 +00:00
|
|
|
public int ColumnCount
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.ColumnCount; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.Name; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterClass ParameterClass
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.ParameterClass; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterType ParameterType
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.ParameterType; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int RowCount
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.RowCount; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string Semantic
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
get { return nativeAnnotation.Semantic; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
2011-10-31 05:36:24 +00:00
|
|
|
|
2012-10-13 13:12:07 +00:00
|
|
|
internal EffectAnnotation(INativeEffectAnnotation setNativeAnnotation)
|
|
|
|
{
|
|
|
|
nativeAnnotation = setNativeAnnotation;
|
|
|
|
}
|
|
|
|
|
2011-10-31 05:36:24 +00:00
|
|
|
public bool GetValueBoolean()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueBoolean();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int GetValueInt32()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueInt32();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix GetValueMatrix()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueMatrix();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float GetValueSingle()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueSingle();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string GetValueString()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueString();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector2 GetValueVector2()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueVector2();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3 GetValueVector3()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueVector3();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector4 GetValueVector4()
|
|
|
|
{
|
2012-10-13 13:12:07 +00:00
|
|
|
return nativeAnnotation.GetValueVector4();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|