Checked all files in the Graphics namespace and added the last missing status attributes

This commit is contained in:
SND\AstrorEnales_cp 2012-10-13 11:25:07 +00:00 committed by Konstantin Koch
parent db82358d24
commit f08d6ea189
38 changed files with 199 additions and 293 deletions

View File

@ -8,29 +8,16 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(90)]
[Developer("Glatzemann")] [Developer("Glatzemann")]
[TestState(TestStateAttribute.TestState.Untested)] [TestState(TestStateAttribute.TestState.Untested)]
public sealed class EffectTechnique public sealed class EffectTechnique
{ {
private Effect parentEffect; internal INativeEffectTechnique NativeTechnique { get; private set; }
private INativeEffectTechnique nativeTechnique;
private EffectPassCollection effectPassCollection;
internal INativeEffectTechnique NativeTechnique
{
get
{
return this.nativeTechnique;
}
}
public string Name public string Name
{ {
get get { return NativeTechnique.Name; }
{
return nativeTechnique.Name;
}
} }
public EffectAnnotationCollection Annotations public EffectAnnotationCollection Annotations
@ -41,19 +28,12 @@ namespace ANX.Framework.Graphics
} }
} }
public EffectPassCollection Passes public EffectPassCollection Passes { get; private set; }
{
get
{
return this.effectPassCollection;
}
}
internal EffectTechnique(Effect parentEffect, INativeEffectTechnique nativeTechnique) internal EffectTechnique(Effect parentEffect, INativeEffectTechnique nativeTechnique)
{ {
this.parentEffect = parentEffect; this.NativeTechnique = nativeTechnique;
this.nativeTechnique = nativeTechnique; this.Passes = new EffectPassCollection(parentEffect, parentEffect.NativeEffect, nativeTechnique);
this.effectPassCollection = new EffectPassCollection(parentEffect, parentEffect.NativeEffect, nativeTechnique);
} }
} }
} }

View File

@ -11,23 +11,16 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(75)] [PercentageComplete(50)]
[Developer("Glatzemann")] [Developer("Glatzemann")]
[TestState(TestStateAttribute.TestState.Untested)] [TestState(TestStateAttribute.TestState.Untested)]
public sealed class GraphicsAdapter public sealed class GraphicsAdapter
{ {
public static ReadOnlyCollection<GraphicsAdapter> Adapters public static ReadOnlyCollection<GraphicsAdapter> Adapters { get; private set; }
{
get;
private set;
}
public static GraphicsAdapter DefaultAdapter public static GraphicsAdapter DefaultAdapter
{ {
get get { return Adapters.First(a => a.IsDefaultAdapter); }
{
return Adapters.Where(a => a.IsDefaultAdapter).First<GraphicsAdapter>();
}
} }
public static bool UseNullDevice { get; set; } public static bool UseNullDevice { get; set; }

View File

@ -1,5 +1,6 @@
#region Using Statements #region Using Statements
using System; using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -9,45 +10,24 @@ using System;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("???")]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class Model public sealed class Model
{ {
private ModelBoneCollection bones; public ModelBoneCollection Bones { get; private set; }
public ModelMeshCollection Meshes { get; private set; }
public ModelBoneCollection Bones public ModelBone Root { get; private set; }
{ public object Tag { get; set; }
get { return bones; }
}
private ModelMeshCollection meshes;
public ModelMeshCollection Meshes
{
get { return meshes; }
}
private ModelBone root;
public ModelBone Root
{
get { return root; }
}
private Object tag;
public Object Tag
{
get { return tag; }
set { tag = value; }
}
private static Matrix[] cachedBonesArray; private static Matrix[] cachedBonesArray;
public Model(ModelBoneCollection bones, ModelMeshCollection meshes, ModelBone rootBone, Object tag) public Model(ModelBoneCollection bones, ModelMeshCollection meshes, ModelBone rootBone, Object tag)
{ {
this.bones = bones; this.Bones = bones;
this.meshes = meshes; this.Meshes = meshes;
this.root = rootBone; this.Root = rootBone;
this.tag = tag; this.Tag = tag;
} }
public void CopyAbsoluteBoneTransformsTo(Matrix[] destinationBoneTransforms) public void CopyAbsoluteBoneTransformsTo(Matrix[] destinationBoneTransforms)
@ -57,14 +37,14 @@ namespace ANX.Framework.Graphics
throw new ArgumentNullException("destinationBoneTransforms"); throw new ArgumentNullException("destinationBoneTransforms");
} }
if (destinationBoneTransforms.Length < bones.Count) if (destinationBoneTransforms.Length < Bones.Count)
{ {
throw new ArgumentOutOfRangeException("destinationBoneTransforms"); throw new ArgumentOutOfRangeException("destinationBoneTransforms");
} }
for (int i = 0; i < bones.Count; i++) for (int i = 0; i < Bones.Count; i++)
{ {
var bone = bones[i]; var bone = Bones[i];
if (bone.Parent == null) if (bone.Parent == null)
{ {
destinationBoneTransforms[i] = bone.Transform; destinationBoneTransforms[i] = bone.Transform;
@ -84,14 +64,14 @@ namespace ANX.Framework.Graphics
throw new ArgumentNullException("sourceBoneTransforms"); throw new ArgumentNullException("sourceBoneTransforms");
} }
if (sourceBoneTransforms.Length < bones.Count) if (sourceBoneTransforms.Length < Bones.Count)
{ {
throw new ArgumentOutOfRangeException("sourceBoneTransforms"); throw new ArgumentOutOfRangeException("sourceBoneTransforms");
} }
for (int i = 0; i < bones.Count; i++) for (int i = 0; i < Bones.Count; i++)
{ {
bones[i].Transform = sourceBoneTransforms[i]; Bones[i].Transform = sourceBoneTransforms[i];
} }
} }
@ -102,28 +82,28 @@ namespace ANX.Framework.Graphics
throw new ArgumentNullException("destinationBoneTransforms"); throw new ArgumentNullException("destinationBoneTransforms");
} }
if (destinationBoneTransforms.Length < bones.Count) if (destinationBoneTransforms.Length < Bones.Count)
{ {
throw new ArgumentOutOfRangeException("destinationBoneTransforms"); throw new ArgumentOutOfRangeException("destinationBoneTransforms");
} }
for (int i = 0; i < bones.Count; i++) for (int i = 0; i < Bones.Count; i++)
{ {
destinationBoneTransforms[i] = bones[i].Transform; destinationBoneTransforms[i] = Bones[i].Transform;
} }
} }
public void Draw (Matrix world, Matrix view, Matrix projection) public void Draw (Matrix world, Matrix view, Matrix projection)
{ {
Matrix[] absTransforms = Model.cachedBonesArray; Matrix[] absTransforms = Model.cachedBonesArray;
if (absTransforms == null || absTransforms.Length < this.bones.Count) if (absTransforms == null || absTransforms.Length < this.Bones.Count)
{ {
Array.Resize<Matrix>(ref absTransforms, this.bones.Count); Array.Resize<Matrix>(ref absTransforms, this.Bones.Count);
Model.cachedBonesArray = absTransforms; Model.cachedBonesArray = absTransforms;
} }
this.CopyAbsoluteBoneTransformsTo(absTransforms); this.CopyAbsoluteBoneTransformsTo(absTransforms);
foreach (var mesh in meshes) foreach (var mesh in Meshes)
{ {
foreach (var effect in mesh.Effects) foreach (var effect in mesh.Effects)
{ {

View File

@ -1,5 +1,6 @@
#region Using Statements #region Using Statements
using System; using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -9,46 +10,22 @@ using System;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("???")]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class ModelBone public sealed class ModelBone
{ {
private ModelBoneCollection children; public ModelBoneCollection Children { get; internal set; }
public ModelBoneCollection Children public int Index { get; private set; }
{ public string Name { get; private set; }
get { return children; } public ModelBone Parent { get; internal set; }
internal set { children = value; } public Matrix Transform { get; set; }
}
private int index;
public int Index
{
get { return index; }
}
private string name;
public string Name
{
get { return name; }
}
private ModelBone parent;
public ModelBone Parent
{
get { return parent; }
internal set { parent = value; }
}
private Matrix transform;
public Matrix Transform
{
get { return transform; }
set { transform = value; }
}
public ModelBone(string name, Matrix transform, int index) public ModelBone(string name, Matrix transform, int index)
{ {
this.name = name; this.Name = name;
this.transform = transform; this.Transform = transform;
this.index = index; this.Index = index;
} }
} }
} }

View File

@ -2,6 +2,8 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
@ -10,6 +12,9 @@ using System.Collections.Generic;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("???")]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class ModelMesh public sealed class ModelMesh
{ {
private BoundingSphere boundingSphere; private BoundingSphere boundingSphere;
@ -19,57 +24,27 @@ namespace ANX.Framework.Graphics
get { return boundingSphere; } get { return boundingSphere; }
} }
private ModelEffectCollection effects; public ModelEffectCollection Effects { get; private set; }
public ModelMeshPartCollection MeshParts { get; private set; }
public ModelEffectCollection Effects public string Name { get; private set; }
{ public ModelBone ParentBone { get; private set; }
get { return effects; } public object Tag { get; set; }
}
private ModelMeshPartCollection meshParts;
public ModelMeshPartCollection MeshParts
{
get { return meshParts; }
}
private string name;
public string Name
{
get { return name; }
}
private ModelBone parentBone;
public ModelBone ParentBone
{
get { return parentBone; }
}
private Object tag;
public Object Tag
{
get { return tag; }
set { this.tag = value; }
}
public ModelMesh(string name, ModelBone bone, BoundingSphere sphere, ModelMeshPart[] meshParts, Object tag) public ModelMesh(string name, ModelBone bone, BoundingSphere sphere, ModelMeshPart[] meshParts, Object tag)
{ {
this.name = name; this.Name = name;
this.parentBone = bone; this.ParentBone = bone;
this.boundingSphere = sphere; this.boundingSphere = sphere;
this.tag = tag; this.Tag = tag;
this.meshParts = new ModelMeshPartCollection(meshParts); this.MeshParts = new ModelMeshPartCollection(meshParts);
this.effects = new ModelEffectCollection(); this.Effects = new ModelEffectCollection();
foreach (var item in this.meshParts) foreach (var item in this.MeshParts)
{ {
item.parentMesh = this; item.parentMesh = this;
if (item.Effect != null && !this.effects.Contains(item.Effect)) if (item.Effect != null && !this.Effects.Contains(item.Effect))
{ {
this.effects.Add(item.Effect); this.Effects.Add(item.Effect);
} }
} }
} }
@ -79,7 +54,7 @@ namespace ANX.Framework.Graphics
bool oldEffectIsInUse = false; bool oldEffectIsInUse = false;
bool newEffectIsKnown = false; bool newEffectIsKnown = false;
foreach (var item in meshParts) foreach (var item in MeshParts)
{ {
if (object.ReferenceEquals(item, part)) if (object.ReferenceEquals(item, part))
{ {
@ -99,18 +74,18 @@ namespace ANX.Framework.Graphics
if (oldEffect != null && !oldEffectIsInUse) if (oldEffect != null && !oldEffectIsInUse)
{ {
effects.Remove(oldEffect); Effects.Remove(oldEffect);
} }
if (newEffect != null && !newEffectIsKnown) if (newEffect != null && !newEffectIsKnown)
{ {
effects.Add(newEffect); Effects.Add(newEffect);
} }
} }
public void Draw() public void Draw()
{ {
foreach (var part in meshParts) foreach (var part in MeshParts)
{ {
foreach (var pass in part.Effect.CurrentTechnique.Passes) foreach (var pass in part.Effect.CurrentTechnique.Passes)
{ {

View File

@ -8,19 +8,13 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[Developer("???")]
[TestState(TestStateAttribute.TestState.Untested)] [TestState(TestStateAttribute.TestState.Untested)]
public sealed class ModelMeshPart public sealed class ModelMeshPart
{ {
#region Private #region Private
internal ModelMesh parentMesh; internal ModelMesh parentMesh;
private Effect effect; private Effect effect;
private IndexBuffer indexBuffer;
private int numVertices;
private int primitiveCount;
private int startIndex;
private Object tag;
private VertexBuffer vertexBuffer;
private int vertexOffset;
#endregion #endregion
#region Public #region Public
@ -38,54 +32,22 @@ namespace ANX.Framework.Graphics
} }
} }
public IndexBuffer IndexBuffer public IndexBuffer IndexBuffer { get; internal set; }
{ public int NumVertices { get; private set; }
get { return indexBuffer; } public int PrimitiveCount { get; private set; }
internal set { this.indexBuffer = value; } public int StartIndex { get; private set; }
} public object Tag { get; set; }
public VertexBuffer VertexBuffer { get; internal set; }
public int NumVertices public int VertexOffset { get; private set; }
{
get { return numVertices; }
}
public int PrimitiveCount
{
get { return primitiveCount; }
}
public int StartIndex
{
get { return startIndex; }
}
public Object Tag
{
get { return tag; }
set { tag = value; }
}
public VertexBuffer VertexBuffer
{
get { return vertexBuffer; }
internal set { this.vertexBuffer = value; }
}
public int VertexOffset
{
get { return vertexOffset; }
}
#endregion #endregion
internal ModelMeshPart(int vertexOffset, int numVertices, int startIndex, int primitiveCount, object tag) internal ModelMeshPart(int vertexOffset, int numVertices, int startIndex, int primitiveCount, object tag)
{ {
this.vertexOffset = vertexOffset; this.VertexOffset = vertexOffset;
this.numVertices = numVertices; this.NumVertices = numVertices;
this.startIndex = startIndex; this.StartIndex = startIndex;
this.primitiveCount = primitiveCount; this.PrimitiveCount = primitiveCount;
this.tag = tag; this.Tag = tag;
} }
} }
} }

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class NoSuitableGraphicsDeviceException : Exception public sealed class NoSuitableGraphicsDeviceException : Exception
{ {
public NoSuitableGraphicsDeviceException() public NoSuitableGraphicsDeviceException()

View File

@ -1,9 +1,14 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("Glatzemann")]
[TestState(TestStateAttribute.TestState.Tested)]
public enum PresentInterval public enum PresentInterval
{ {
Default, Default,

View File

@ -1,9 +1,14 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("Glatzemann")]
[TestState(TestStateAttribute.TestState.Tested)]
public enum PrimitiveType public enum PrimitiveType
{ {
TriangleList, TriangleList,

View File

@ -10,6 +10,8 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[Developer("AstrorEnales")]
[TestState(TestStateAttribute.TestState.Untested)]
public class RasterizerState : GraphicsResource public class RasterizerState : GraphicsResource
{ {
#region Constants #region Constants

View File

@ -2,6 +2,7 @@ using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using ANX.Framework.NonXNA; using ANX.Framework.NonXNA;
using ANX.Framework.NonXNA.RenderSystem; using ANX.Framework.NonXNA.RenderSystem;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
@ -9,57 +10,17 @@ using ANX.Framework.NonXNA.RenderSystem;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(70)]
[TestState(TestStateAttribute.TestState.Untested)]
public class RenderTarget2D : Texture2D, IDynamicGraphicsResource public class RenderTarget2D : Texture2D, IDynamicGraphicsResource
{ {
public event EventHandler<EventArgs> ContentLost; public event EventHandler<EventArgs> ContentLost;
#region Private internal INativeRenderTarget2D NativeRenderTarget { get; private set; }
private DepthFormat depthStencilFormat; public DepthFormat DepthStencilFormat { get; private set; }
private int multiSampleCount; public bool IsContentLost { get; private set; }
private RenderTargetUsage usage; public int MultiSampleCount { get; private set; }
private bool isContentLost; public RenderTargetUsage RenderTargetUsage { get; private set; }
private INativeRenderTarget2D nativeRenderTarget;
#endregion
internal INativeRenderTarget2D NativeRenderTarget
{
get
{
return this.nativeRenderTarget;
}
}
public DepthFormat DepthStencilFormat
{
get
{
return this.depthStencilFormat;
}
}
public bool IsContentLost
{
get
{
return this.isContentLost;
}
}
public int MultiSampleCount
{
get
{
return this.multiSampleCount;
}
}
public RenderTargetUsage RenderTargetUsage
{
get
{
return this.usage;
}
}
#region Constructor #region Constructor
public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height) public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height)
@ -73,14 +34,14 @@ namespace ANX.Framework.Graphics
base.levelCount = 1; base.levelCount = 1;
base.format = SurfaceFormat.Color; base.format = SurfaceFormat.Color;
this.depthStencilFormat = DepthFormat.None; this.DepthStencilFormat = DepthFormat.None;
this.multiSampleCount = 0; this.MultiSampleCount = 0;
this.usage = RenderTargetUsage.DiscardContents; this.RenderTargetUsage = RenderTargetUsage.DiscardContents;
var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>(); var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>();
this.nativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color, this.NativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color,
this.depthStencilFormat, this.multiSampleCount, this.usage); this.DepthStencilFormat, this.MultiSampleCount, this.RenderTargetUsage);
base.nativeTexture = this.nativeRenderTarget as INativeTexture2D; base.nativeTexture = this.NativeRenderTarget as INativeTexture2D;
} }
public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height, public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height,
@ -95,14 +56,14 @@ namespace ANX.Framework.Graphics
base.levelCount = 1; base.levelCount = 1;
base.format = preferredFormat; base.format = preferredFormat;
this.depthStencilFormat = preferredDepthFormat; this.DepthStencilFormat = preferredDepthFormat;
this.multiSampleCount = 0; this.MultiSampleCount = 0;
this.usage = RenderTargetUsage.DiscardContents; this.RenderTargetUsage = RenderTargetUsage.DiscardContents;
var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>(); var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>();
this.nativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color, this.NativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color,
this.depthStencilFormat, this.multiSampleCount, this.usage); this.DepthStencilFormat, this.MultiSampleCount, this.RenderTargetUsage);
base.nativeTexture = this.nativeRenderTarget as INativeTexture2D; base.nativeTexture = this.NativeRenderTarget as INativeTexture2D;
} }
public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height, public RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height,
@ -118,14 +79,14 @@ namespace ANX.Framework.Graphics
base.levelCount = 1; base.levelCount = 1;
base.format = preferredFormat; base.format = preferredFormat;
this.depthStencilFormat = preferredDepthFormat; this.DepthStencilFormat = preferredDepthFormat;
this.multiSampleCount = preferredMultiSampleCount; this.MultiSampleCount = preferredMultiSampleCount;
this.usage = usage; this.RenderTargetUsage = usage;
var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>(); var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>();
this.nativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color, this.NativeRenderTarget = creator.CreateRenderTarget(graphicsDevice, width, height, false, SurfaceFormat.Color,
this.depthStencilFormat, this.multiSampleCount, this.usage); this.DepthStencilFormat, this.MultiSampleCount, this.RenderTargetUsage);
base.nativeTexture = this.nativeRenderTarget as INativeTexture2D; base.nativeTexture = this.NativeRenderTarget as INativeTexture2D;
} }
#endregion #endregion
@ -136,7 +97,7 @@ namespace ANX.Framework.Graphics
void IDynamicGraphicsResource.SetContentLost(bool isContentLost) void IDynamicGraphicsResource.SetContentLost(bool isContentLost)
{ {
this.isContentLost = isContentLost; this.IsContentLost = isContentLost;
if (isContentLost) if (isContentLost)
raise_ContentLost(this, EventArgs.Empty); raise_ContentLost(this, EventArgs.Empty);

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct RenderTargetBinding public struct RenderTargetBinding
{ {
#region Private #region Private

View File

@ -9,6 +9,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(0)] [PercentageComplete(0)]
[TestState(TestStateAttribute.TestState.Untested)]
public class RenderTargetCube : TextureCube, IDynamicGraphicsResource public class RenderTargetCube : TextureCube, IDynamicGraphicsResource
{ {
public event EventHandler<EventArgs> ContentLost; public event EventHandler<EventArgs> ContentLost;

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum RenderTargetUsage public enum RenderTargetUsage
{ {
DiscardContents, DiscardContents,

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class ResourceCreatedEventArgs : EventArgs public sealed class ResourceCreatedEventArgs : EventArgs
{ {
public object Resource { get; set; } public object Resource { get; set; }

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class ResourceDestroyedEventArgs : EventArgs public sealed class ResourceDestroyedEventArgs : EventArgs
{ {
public string Name { get; set; } public string Name { get; set; }

View File

@ -10,6 +10,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public class SamplerState : GraphicsResource public class SamplerState : GraphicsResource
{ {
#region Constants #region Constants

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum SetDataOptions public enum SetDataOptions
{ {
Discard = 1, Discard = 1,

View File

@ -1,4 +1,5 @@
using System; using System;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
@ -7,6 +8,8 @@ using System;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[Flags] [Flags]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum SpriteEffects public enum SpriteEffects
{ {
None, None,

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum SpriteSortMode public enum SpriteSortMode
{ {
Deferred = 0, Deferred = 0,

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum StencilOperation public enum StencilOperation
{ {
Keep, Keep,

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum SurfaceFormat public enum SurfaceFormat
{ {
Color, Color,

View File

@ -1,3 +1,4 @@
using ANX.Framework.NonXNA.Development;
using ANX.Framework.NonXNA.RenderSystem; using ANX.Framework.NonXNA.RenderSystem;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
@ -6,6 +7,8 @@ using ANX.Framework.NonXNA.RenderSystem;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public abstract class Texture : GraphicsResource public abstract class Texture : GraphicsResource
{ {
protected internal int levelCount; protected internal int levelCount;

View File

@ -2,6 +2,7 @@ using System;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using ANX.Framework.NonXNA; using ANX.Framework.NonXNA;
using ANX.Framework.NonXNA.Development;
using ANX.Framework.NonXNA.RenderSystem; using ANX.Framework.NonXNA.RenderSystem;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
@ -10,6 +11,8 @@ using ANX.Framework.NonXNA.RenderSystem;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(70)]
[TestState(TestStateAttribute.TestState.Untested)]
public class Texture2D : Texture, IGraphicsResource public class Texture2D : Texture, IGraphicsResource
{ {
#region Private #region Private

View File

@ -9,6 +9,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(0)] [PercentageComplete(0)]
[TestState(TestStateAttribute.TestState.Untested)]
public class Texture3D : Texture, IGraphicsResource public class Texture3D : Texture, IGraphicsResource
{ {
public int Depth public int Depth

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum TextureAddressMode public enum TextureAddressMode
{ {
Wrap, Wrap,

View File

@ -1,5 +1,6 @@
using System; using System;
using ANX.Framework.NonXNA; using ANX.Framework.NonXNA;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
@ -7,9 +8,12 @@ using ANX.Framework.NonXNA;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[Developer("AstrorEnales")]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class TextureCollection public sealed class TextureCollection
{ {
private Texture[] textures; private readonly Texture[] textures;
public Texture this[int index] public Texture this[int index]
{ {

View File

@ -9,6 +9,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(0)] [PercentageComplete(0)]
[TestState(TestStateAttribute.TestState.Untested)]
public class TextureCube : Texture, IGraphicsResource public class TextureCube : Texture, IGraphicsResource
{ {
public int Size public int Size

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum TextureFilter public enum TextureFilter
{ {
Linear, Linear,

View File

@ -9,6 +9,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)] [PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public class VertexDeclaration : GraphicsResource public class VertexDeclaration : GraphicsResource
{ {
private VertexElement[] elements; private VertexElement[] elements;

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(95)] [PercentageComplete(95)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct VertexElement public struct VertexElement
{ {
#region Private #region Private

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum VertexElementFormat public enum VertexElementFormat
{ {
Single = 0, Single = 0,

View File

@ -1,9 +1,13 @@
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license // For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public enum VertexElementUsage public enum VertexElementUsage
{ {
Position = 0, Position = 0,

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(95)] [PercentageComplete(95)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct VertexPositionColor : IVertexType public struct VertexPositionColor : IVertexType
{ {
public Vector3 Position; public Vector3 Position;

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(95)] [PercentageComplete(95)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct VertexPositionColorTexture : IVertexType public struct VertexPositionColorTexture : IVertexType
{ {
public Vector3 Position; public Vector3 Position;

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(95)] [PercentageComplete(95)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct VertexPositionNormalTexture : IVertexType public struct VertexPositionNormalTexture : IVertexType
{ {
public Vector3 Position; public Vector3 Position;

View File

@ -8,6 +8,7 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(95)] [PercentageComplete(95)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct VertexPositionTexture : IVertexType public struct VertexPositionTexture : IVertexType
{ {
public Vector3 Position; public Vector3 Position;

View File

@ -1,4 +1,5 @@
using System; using System;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the // This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license. // "ANX.Framework developer group" and released under the Ms-PL license.
@ -6,6 +7,8 @@ using System;
namespace ANX.Framework.Graphics namespace ANX.Framework.Graphics
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public struct Viewport public struct Viewport
{ {
#region Private #region Private