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
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
internal INativeEffectAnnotation NativeAnnotation
|
|
|
|
{
|
|
|
|
get;
|
|
|
|
private set;
|
|
|
|
}
|
2012-10-13 13:12:07 +00:00
|
|
|
|
2012-09-04 08:31:17 +00:00
|
|
|
public int ColumnCount
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
get { return NativeAnnotation.ColumnCount; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
get { return NativeAnnotation.Name; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterClass ParameterClass
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
get { return NativeAnnotation.ParameterClass; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterType ParameterType
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
get { return NativeAnnotation.ParameterType; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int RowCount
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
get { return NativeAnnotation.RowCount; }
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string Semantic
|
|
|
|
{
|
2015-10-14 23:59:27 +02: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)
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
NativeAnnotation = setNativeAnnotation;
|
2012-10-13 13:12:07 +00:00
|
|
|
}
|
|
|
|
|
2011-10-31 05:36:24 +00:00
|
|
|
public bool GetValueBoolean()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueBoolean();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int GetValueInt32()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueInt32();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix GetValueMatrix()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueMatrix();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float GetValueSingle()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueSingle();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string GetValueString()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueString();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector2 GetValueVector2()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueVector2();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3 GetValueVector3()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueVector3();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector4 GetValueVector4()
|
|
|
|
{
|
2015-10-14 23:59:27 +02:00
|
|
|
return NativeAnnotation.GetValueVector4();
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|