diff --git a/ANX.Framework.Windows.DX10/GraphicsDeviceWindowsDX10.cs b/ANX.Framework.Windows.DX10/GraphicsDeviceWindowsDX10.cs index 2578c926..bffad100 100644 --- a/ANX.Framework.Windows.DX10/GraphicsDeviceWindowsDX10.cs +++ b/ANX.Framework.Windows.DX10/GraphicsDeviceWindowsDX10.cs @@ -349,5 +349,26 @@ namespace ANX.Framework.Windows.DX10 { throw new NotImplementedException(); } + + + public void Clear(ClearOptions options, Vector4 color, float depth, int stencil) + { + throw new NotImplementedException(); + } + + public void DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount) + { + throw new NotImplementedException(); + } + + public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, Array indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration, IndexElementSize indexFormat) where T : struct, IVertexType + { + throw new NotImplementedException(); + } + + public void DrawUserPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType + { + throw new NotImplementedException(); + } } } diff --git a/ANX.Framework.Windows.GL3/GraphicsDeviceWindowsGL3.cs b/ANX.Framework.Windows.GL3/GraphicsDeviceWindowsGL3.cs index b36f6337..4d6f343b 100644 --- a/ANX.Framework.Windows.GL3/GraphicsDeviceWindowsGL3.cs +++ b/ANX.Framework.Windows.GL3/GraphicsDeviceWindowsGL3.cs @@ -239,5 +239,26 @@ namespace ANX.Framework.Windows.GL3 { throw new NotImplementedException(); } + + + public void Clear(ClearOptions options, Vector4 color, float depth, int stencil) + { + throw new NotImplementedException(); + } + + public void DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount) + { + throw new NotImplementedException(); + } + + public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, Array indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration, IndexElementSize indexFormat) where T : struct, IVertexType + { + throw new NotImplementedException(); + } + + public void DrawUserPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType + { + throw new NotImplementedException(); + } } } diff --git a/ANX.Framework.sln b/ANX.Framework.sln index 04ce33db..10b283d0 100644 --- a/ANX.Framework.sln +++ b/ANX.Framework.sln @@ -47,6 +47,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XNAToANXConverter", "Tools\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ANX.InputSystem.Windows.Kinect", "ANX.InputSystem.Windows.Kinect\ANX.InputSystem.Windows.Kinect.csproj", "{E5D69E75-D77C-493F-BBDA-6F9E73B82549}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kinect", "Samples\Kinect\Kinect.csproj", "{A42413A9-5189-40CB-AACA-D50F24865431}" +EndProject Global GlobalSection(SubversionScc) = preSolution Svn-Managed = True @@ -235,6 +237,16 @@ Global {E5D69E75-D77C-493F-BBDA-6F9E73B82549}.Release|Mixed Platforms.Build.0 = Release|x86 {E5D69E75-D77C-493F-BBDA-6F9E73B82549}.Release|x86.ActiveCfg = Release|x86 {E5D69E75-D77C-493F-BBDA-6F9E73B82549}.Release|x86.Build.0 = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|Any CPU.ActiveCfg = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|x86.ActiveCfg = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|x86.Build.0 = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|Any CPU.ActiveCfg = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|Mixed Platforms.Build.0 = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|x86.ActiveCfg = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -251,6 +263,7 @@ Global {FA6E229D-4504-47B1-8A23-2D3FCC13F778} = {9B0DD48B-3912-4F33-AF3F-691AF02B73F9} {45D6F4DE-5BB6-4E86-8C44-F9CA307AE43F} = {9B0DD48B-3912-4F33-AF3F-691AF02B73F9} {A08575E0-7B21-4822-9D4C-6B9EEB7EFFF7} = {9B0DD48B-3912-4F33-AF3F-691AF02B73F9} + {A42413A9-5189-40CB-AACA-D50F24865431} = {9B0DD48B-3912-4F33-AF3F-691AF02B73F9} {60D08399-244F-46A3-91F1-4CFD26D961A3} = {7AD65E6B-2A48-437F-81D9-4CA9C9A85C64} {E5D69E75-D77C-493F-BBDA-6F9E73B82549} = {7AD65E6B-2A48-437F-81D9-4CA9C9A85C64} {6A582788-C4D2-410C-96CD-177F75712D65} = {5725DA44-4F5C-4E93-A957-AC5C85603EE9} diff --git a/ANX.Framework/Graphics/GraphicsDevice.cs b/ANX.Framework/Graphics/GraphicsDevice.cs index 41edcdae..c2430729 100644 --- a/ANX.Framework/Graphics/GraphicsDevice.cs +++ b/ANX.Framework/Graphics/GraphicsDevice.cs @@ -85,9 +85,10 @@ namespace ANX.Framework.Graphics public event EventHandler DeviceLost; public event EventHandler DeviceReset; public event EventHandler DeviceResetting; - + #endregion // Events + #region Constructor & Destructor public GraphicsDevice(GraphicsAdapter adapter, GraphicsProfile graphicsProfile, PresentationParameters presentationParameters) { this.currentAdapter = adapter; @@ -108,21 +109,27 @@ namespace ANX.Framework.Graphics this.Dispose(false); } - public void Clear(ClearOptions options, Color color, float depth, int stencil) - { - throw new NotImplementedException(); - } + #endregion // Constructor & Destructor - public void Clear(ClearOptions options, Vector4 color, float depth, int stencil) - { - throw new NotImplementedException(); - } - + #region Clear public void Clear(Color color) { nativeDevice.Clear(ref color); } + public void Clear(ClearOptions options, Color color, float depth, int stencil) + { + Clear(options, color.ToVector4(), depth, stencil); + } + + public void Clear(ClearOptions options, Vector4 color, float depth, int stencil) + { + nativeDevice.Clear(options, color, depth, stencil); + } + + #endregion // Clear + + #region Present public void Present() { nativeDevice.Present(); @@ -133,51 +140,78 @@ namespace ANX.Framework.Graphics throw new NotImplementedException(); } + #endregion // Present + + #region DrawPrimitives & DrawIndexedPrimitives public void DrawIndexedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount) { nativeDevice.DrawIndexedPrimitives(primitiveType, baseVertex, minVertexIndex, numVertices, startIndex, primitiveCount); } - public void DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount) - { - throw new NotImplementedException(); - } - public void DrawPrimitives(PrimitiveType primitiveType, int startVertex, int primitiveCount) { nativeDevice.DrawPrimitives(primitiveType, startVertex, primitiveCount); } + #endregion // DrawPrimitives & DrawIndexedPrimitives + + #region DrawInstancedPrimitives + public void DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount) + { + nativeDevice.DrawInstancedPrimitives(primitiveType, baseVertex, minVertexIndex, numVertices, startIndex, primitiveCount, instanceCount); + } + + #endregion // DrawInstancedPrimitives + + #region DrawUserIndexedPrimitives public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, short[] indexData, int indexOffset, int primitiveCount) where T : struct, IVertexType { - throw new NotImplementedException(); + //TODO: cache the instances to avoid reflection overhead + IVertexType vertexType = Activator.CreateInstance(); + VertexDeclaration vertexDeclaration = vertexType.VertexDeclaration; + + nativeDevice.DrawUserIndexedPrimitives(primitiveType, vertexData, vertexOffset, numVertices, indexData, indexOffset, primitiveCount, vertexDeclaration, IndexElementSize.SixteenBits); } public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, short[] indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType { - throw new NotImplementedException(); + nativeDevice.DrawUserIndexedPrimitives(primitiveType, vertexData, vertexOffset, numVertices, indexData, indexOffset, primitiveCount, vertexDeclaration, IndexElementSize.SixteenBits); } public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, int[] indexData, int indexOffset, int primitiveCount) where T : struct, IVertexType { - throw new NotImplementedException(); + //TODO: cache the instances to avoid reflection overhead + IVertexType vertexType = Activator.CreateInstance(); + VertexDeclaration vertexDeclaration = vertexType.VertexDeclaration; + + nativeDevice.DrawUserIndexedPrimitives(primitiveType, vertexData, vertexOffset, numVertices, indexData, indexOffset, primitiveCount, vertexDeclaration, IndexElementSize.ThirtyTwoBits); } public void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, int[] indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType { - throw new NotImplementedException(); + nativeDevice.DrawUserIndexedPrimitives(primitiveType, vertexData, vertexOffset, numVertices, indexData, indexOffset, primitiveCount, vertexDeclaration, IndexElementSize.ThirtyTwoBits); } + #endregion // DrawUserIndexedPrimitives + + #region DrawUserPrimitives public void DrawUserPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount) where T : struct, IVertexType { - throw new NotImplementedException(); + //TODO: cache the instances to avoid reflection overhead + IVertexType vertexType = Activator.CreateInstance(); + VertexDeclaration vertexDeclaration = vertexType.VertexDeclaration; + + nativeDevice.DrawUserPrimitives(primitiveType, vertexData, vertexOffset, primitiveCount, vertexDeclaration); } public void DrawUserPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType { - throw new NotImplementedException(); + nativeDevice.DrawUserPrimitives(primitiveType, vertexData, vertexOffset, primitiveCount, vertexDeclaration); } + #endregion // DrawUserPrimitives + + #region SetVertexBuffer public void SetVertexBuffer(VertexBuffer vertexBuffer) { VertexBufferBinding[] bindings = new VertexBufferBinding[] { new VertexBufferBinding(vertexBuffer) }; @@ -198,6 +232,9 @@ namespace ANX.Framework.Graphics nativeDevice.SetVertexBuffers(vertexBuffers); } + #endregion // SetVertexBuffer + + #region SetRenderTarget public void SetRenderTarget(RenderTarget2D renderTarget) { RenderTargetBinding[] renderTargetBindings = new RenderTargetBinding[] { new RenderTargetBinding(renderTarget) }; @@ -218,6 +255,9 @@ namespace ANX.Framework.Graphics nativeDevice.SetRenderTargets(renderTargets); } + #endregion // SetRenderTarget + + #region GetBackBufferData public void GetBackBufferData(Nullable rect, T[] data, int startIndex, int elementCount) where T : struct { nativeDevice.GetBackBufferData(rect, data, startIndex, elementCount); @@ -233,6 +273,8 @@ namespace ANX.Framework.Graphics nativeDevice.GetBackBufferData(data, startIndex, elementCount); } + #endregion // GetBackBufferData + public VertexBufferBinding[] GetVertexBuffers() { return this.currentVertexBufferBindings; @@ -243,6 +285,7 @@ namespace ANX.Framework.Graphics return this.currentRenderTargetBindings; } + #region Reset public void Reset() { this.Reset(this.currentPresentationParameters, this.currentAdapter); @@ -258,6 +301,8 @@ namespace ANX.Framework.Graphics throw new NotImplementedException(); } + #endregion // Reset + public void Dispose() { throw new NotImplementedException(); @@ -377,7 +422,7 @@ namespace ANX.Framework.Graphics return this.samplerStateCollection; } } - + public bool IsDisposed { get @@ -467,7 +512,7 @@ namespace ANX.Framework.Graphics } } } - + public Color BlendFactor { get @@ -517,15 +562,15 @@ namespace ANX.Framework.Graphics protected void raise_DeviceResetting(object sender, EventArgs args) { - if (DeviceResetting != null) + if (DeviceResetting != null) { DeviceResetting(sender, args); } } - + protected void raise_DeviceReset(object sender, EventArgs args) { - if (DeviceReset != null) + if (DeviceReset != null) { DeviceReset(sender, args); } @@ -533,7 +578,7 @@ namespace ANX.Framework.Graphics protected void raise_DeviceLost(object sender, EventArgs args) { - if (DeviceLost != null) + if (DeviceLost != null) { DeviceLost(sender, args); } @@ -541,7 +586,7 @@ namespace ANX.Framework.Graphics protected void raise_ResourceCreated(object sender, ResourceCreatedEventArgs args) { - if (ResourceCreated != null) + if (ResourceCreated != null) { ResourceCreated(sender, args); } @@ -549,7 +594,7 @@ namespace ANX.Framework.Graphics protected void raise_ResourceDestroyed(object sender, ResourceDestroyedEventArgs args) { - if (ResourceDestroyed != null) + if (ResourceDestroyed != null) { ResourceDestroyed(sender, args); } diff --git a/ANX.Framework/Input/Mouse.cs b/ANX.Framework/Input/Mouse.cs index c376b533..3538a42f 100644 --- a/ANX.Framework/Input/Mouse.cs +++ b/ANX.Framework/Input/Mouse.cs @@ -64,16 +64,37 @@ namespace ANX.Framework.Input public static IntPtr WindowHandle { - get { return mouse.WindowHandle; } - set { mouse.WindowHandle = value; } + get + { + return mouse != null ? mouse.WindowHandle : IntPtr.Zero; + } + set + { + if (mouse != null) + { + mouse.WindowHandle = value; + } + } } + public static MouseState GetState() { - return mouse.GetState(); + if (mouse != null) + { + return mouse.GetState(); + } + else + { + return new MouseState(); + } } + public static void SetPosition(int x, int y) { - mouse.SetPosition(x, y); + if (mouse != null) + { + mouse.SetPosition(x, y); + } } } } diff --git a/ANX.Framework/NonXNA/RenderSystem/INativeGraphicsDevice.cs b/ANX.Framework/NonXNA/RenderSystem/INativeGraphicsDevice.cs index ba323fe2..4875933d 100644 --- a/ANX.Framework/NonXNA/RenderSystem/INativeGraphicsDevice.cs +++ b/ANX.Framework/NonXNA/RenderSystem/INativeGraphicsDevice.cs @@ -56,11 +56,18 @@ namespace ANX.Framework.NonXNA public interface INativeGraphicsDevice { void Clear(ref Color color); + void Clear(ClearOptions options, Vector4 color, float depth, int stencil); void Present(); void DrawIndexedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount); + void DrawInstancedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount); + + void DrawUserIndexedPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, Array indexData, int indexOffset, int primitiveCount, VertexDeclaration vertexDeclaration, IndexElementSize indexFormat) where T : struct, IVertexType; + + void DrawUserPrimitives(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount, VertexDeclaration vertexDeclaration) where T : struct, IVertexType; + void DrawPrimitives(PrimitiveType primitiveType, int vertexOffset, int primitiveCount); void SetVertexBuffers(VertexBufferBinding[] vertexBuffers); diff --git a/ANX.RenderSystem.Windows.DX11.1/GraphicsDeviceWindowsDX11_1.cs b/ANX.RenderSystem.Windows.DX11.1/GraphicsDeviceWindowsDX11_1.cs index 34ab7398..e04636fa 100644 --- a/ANX.RenderSystem.Windows.DX11.1/GraphicsDeviceWindowsDX11_1.cs +++ b/ANX.RenderSystem.Windows.DX11.1/GraphicsDeviceWindowsDX11_1.cs @@ -609,5 +609,26 @@ namespace ANX.RenderSystem.Windows.DX11_1 { throw new NotImplementedException(); } + + + public void Clear(Framework.Graphics.ClearOptions options, Framework.Vector4 color, float depth, int stencil) + { + throw new NotImplementedException(); + } + + public void DrawInstancedPrimitives(Framework.Graphics.PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount, int instanceCount) + { + throw new NotImplementedException(); + } + + public void DrawUserIndexedPrimitives(Framework.Graphics.PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, Array indexData, int indexOffset, int primitiveCount, Framework.Graphics.VertexDeclaration vertexDeclaration, Framework.Graphics.IndexElementSize indexFormat) where T : struct, Framework.Graphics.IVertexType + { + throw new NotImplementedException(); + } + + public void DrawUserPrimitives(Framework.Graphics.PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount, Framework.Graphics.VertexDeclaration vertexDeclaration) where T : struct, Framework.Graphics.IVertexType + { + throw new NotImplementedException(); + } } } diff --git a/Samples/ANX.Framework.Samples.sln b/Samples/ANX.Framework.Samples.sln index 0ac19dc7..345d7c9c 100644 --- a/Samples/ANX.Framework.Samples.sln +++ b/Samples/ANX.Framework.Samples.sln @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xinput", "Xinput\Xinput.csp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsGame", "WindowsGame\WindowsGame.csproj", "{A08575E0-7B21-4822-9D4C-6B9EEB7EFFF7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kinect", "Kinect\Kinect.csproj", "{A42413A9-5189-40CB-AACA-D50F24865431}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -55,6 +57,12 @@ Global {A08575E0-7B21-4822-9D4C-6B9EEB7EFFF7}.Release|Any CPU.ActiveCfg = Release|x86 {A08575E0-7B21-4822-9D4C-6B9EEB7EFFF7}.Release|x86.ActiveCfg = Release|x86 {A08575E0-7B21-4822-9D4C-6B9EEB7EFFF7}.Release|x86.Build.0 = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|Any CPU.ActiveCfg = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|x86.ActiveCfg = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Debug|x86.Build.0 = Debug|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|Any CPU.ActiveCfg = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|x86.ActiveCfg = Release|x86 + {A42413A9-5189-40CB-AACA-D50F24865431}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Samples/Kinect/Game.ico b/Samples/Kinect/Game.ico new file mode 100644 index 00000000..8cff41ea Binary files /dev/null and b/Samples/Kinect/Game.ico differ diff --git a/Samples/Kinect/Game1.cs b/Samples/Kinect/Game1.cs new file mode 100644 index 00000000..046d520f --- /dev/null +++ b/Samples/Kinect/Game1.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using ANX.Framework; +using ANX.Framework.Content; +using ANX.Framework.Graphics; +using ANX.Framework.Input; + +namespace Kinect +{ + public class Game1 : ANX.Framework.Game + { + GraphicsDeviceManager graphics; + SpriteBatch spriteBatch; + + public Game1() + : base("DirectX10", "Kinect") + { + graphics = new GraphicsDeviceManager(this); + Content.RootDirectory = "Content"; + } + + protected override void Initialize() + { + // TODO: Fügen Sie Ihre Initialisierungslogik hier hinzu + + base.Initialize(); + } + + protected override void LoadContent() + { + spriteBatch = new SpriteBatch(GraphicsDevice); + + // TODO: Verwenden Sie this.Content, um Ihren Spiel-Inhalt hier zu laden + } + + protected override void Update(GameTime gameTime) + { + //TODO: reactivate + //if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) + // this.Exit(); + + // TODO: Fügen Sie Ihre Aktualisierungslogik hier hinzu + + base.Update(gameTime); + } + + protected override void Draw(GameTime gameTime) + { + GraphicsDevice.Clear(Color.Black); + + // TODO: Fügen Sie Ihren Zeichnungscode hier hinzu + + base.Draw(gameTime); + } + } +} diff --git a/Samples/Kinect/GameThumbnail.png b/Samples/Kinect/GameThumbnail.png new file mode 100644 index 00000000..462311ab Binary files /dev/null and b/Samples/Kinect/GameThumbnail.png differ diff --git a/Samples/Kinect/Kinect.csproj b/Samples/Kinect/Kinect.csproj new file mode 100644 index 00000000..d070991a --- /dev/null +++ b/Samples/Kinect/Kinect.csproj @@ -0,0 +1,141 @@ + + + + {A42413A9-5189-40CB-AACA-D50F24865431} + {6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Debug + x86 + WinExe + Properties + Kinect + Kinect + v4.0 + Client + v4.0 + Windows + HiDef + fbb6b32f-d733-4167-932a-afacbf97818e + Game + Game.ico + GameThumbnail.png + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + true + full + false + bin\x86\Debug + DEBUG;TRACE;WINDOWS + prompt + 4 + true + false + x86 + false + + + pdbonly + true + bin\x86\Release + TRACE;WINDOWS + prompt + 4 + true + false + x86 + true + + + + + + + + + + + + + + + + + + true + + + + + False + Microsoft .NET Framework 4 Client Profile %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + + False + Microsoft XNA Framework Redistributable 4.0 + true + + + + + {5BE49183-2F6F-4527-AC90-D816911FCF90} + ANX.Framework.Windows.DX10 + + + {6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35} + ANX.Framework + + + {E5D69E75-D77C-493F-BBDA-6F9E73B82549} + ANX.InputSystem.Windows.Kinect + + + {6A582788-C4D2-410C-96CD-177F75712D65} + ANX.SoundSystem.Windows.XAudio + + + {FA6E229D-4504-47B1-8A23-2D3FCC13F778} + SampleContent + Content + + + + + + \ No newline at end of file diff --git a/Samples/Kinect/Program.cs b/Samples/Kinect/Program.cs new file mode 100644 index 00000000..c7f402fa --- /dev/null +++ b/Samples/Kinect/Program.cs @@ -0,0 +1,21 @@ +using System; + +namespace Kinect +{ +#if WINDOWS || XBOX + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + static void Main(string[] args) + { + using (Game1 game = new Game1()) + { + game.Run(); + } + } + } +#endif +} + diff --git a/Samples/Kinect/Properties/AssemblyInfo.cs b/Samples/Kinect/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..7e311369 --- /dev/null +++ b/Samples/Kinect/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über den folgenden +// Satz von Attributen kontrolliert. Ändern Sie diese Attributwerte, um die mit einer Assembly +// verbundenen Informationen zu ändern. +[assembly: AssemblyTitle("Kinect")] +[assembly: AssemblyProduct("Kinect Sample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyCompany("ANX.Framework Team")] +[assembly: AssemblyCopyright("Copyright © ANX.Framework Team 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Bei Einstellung von ComVisible auf falsch sind die Typen in dieser Assembly für +// COM-Komponenten nicht sichtbar. Wenn Sie von COM aus auf einen Typ in dieser Assembly +// zugreifen müssen, stellen Sie das Attribut ComVisible bei diesem Typ auf wahr ein. Nur Windows- +// Assemblys unterstützen COM. +[assembly: ComVisible(false)] + +// Auf Windows gilt die folgende GUID für die ID von typelib, wenn dieses +// COM ausgesetzt ist. Auf anderen Plattformen identifiziert sie den +// Titelspeichercontainer bei Bereitstellung dieser Assembly auf dem Gerät eindeutig. +[assembly: Guid("92a0397a-522d-455d-91a1-62c5dc85a764")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Größere Version +// Kleinere Version +// Build-Nummer +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] diff --git a/media/Test_100x100.png b/media/Test_100x100.png new file mode 100644 index 00000000..2d479b86 Binary files /dev/null and b/media/Test_100x100.png differ