From b0dd58a08bb10ee29463f253806b4d11756632e1 Mon Sep 17 00:00:00 2001 From: Tom Lint Date: Tue, 20 Aug 2013 11:14:55 +0200 Subject: [PATCH] Added file comments and TypeInfos Added some implementations Added auto_ptr and gc_ptr for easier memory management --- README.md | 2 +- XFX.sln | 5 +- include/Audio.h | 3 + include/Audio/DynamicSoundEffectInstance.h | 31 ++++-- include/Audio/Enums.h | 12 +-- include/Audio/SoundEffectInstance.h | 5 +- include/GamerServices/Guide.h | 2 +- include/Graphics/Color.h | 2 +- include/Graphics/DepthStencilState.h | 2 +- include/Graphics/RasterizerState.h | 1 - include/Media/Video.h | 10 +- include/System/Collections/Generic/Queue.h | 24 ++++- include/System/EventArgs.h | 6 +- include/System/Windows/FrameworkElement.h | 7 +- include/xmem.h | 119 +++++++++++++++++++++ src/libSystem.Windows/FrameworkElement.cpp | 14 ++- src/libSystem.Windows/GridLength.cpp | 39 ++++++- src/libSystem.Windows/Point.cpp | 36 ++++++- src/libXFX.Game/DrawableGameComponent.cpp | 4 +- src/libXFX.Game/Game.cpp | 24 ++--- src/libXFX.Game/GameComponent.cpp | 6 +- src/libXFX.Game/GraphicsDeviceManager.cpp | 24 ++--- src/libXFX.Game/libXFX.Game.vcxproj | 5 +- src/libXFX/DirectionalLight.cpp | 46 ++++++++ src/libXFX/DisplayMode.cpp | 23 ++-- src/libXFX/DynamicSoundEffectInstance.cpp | 60 +++++++++++ src/libXFX/GraphicsAdapter.cpp | 2 +- src/libXFX/GraphicsDevice.cpp | 63 ++++++----- src/libXFX/GraphicsResource.cpp | 2 +- src/libXFX/RasterizerState.cpp | 46 ++++++++ src/libXFX/RenderTarget2D.cpp | 13 ++- src/libXFX/SoundEffect.cpp | 6 +- src/libXFX/SoundEffectInstance.cpp | 2 +- src/libXFX/SpriteBatch.cpp | 2 +- src/libXFX/StateBlock.cpp | 2 +- src/libXFX/StorageContainer.cpp | 32 +++--- src/libXFX/StorageDevice.cpp | 2 +- src/libXFX/Texture.cpp | 63 +++++------ src/libXFX/VertexElement.cpp | 11 +- src/libXFX/VideoPlayer.cpp | 9 ++ src/libXFX/libXFX.vcxproj | 7 +- src/libXFX/libXFX.vcxproj.filters | 9 ++ src/libmscorlib/EventArgs.cpp | 9 +- 43 files changed, 609 insertions(+), 183 deletions(-) create mode 100644 include/xmem.h create mode 100644 src/libXFX/DirectionalLight.cpp create mode 100644 src/libXFX/DynamicSoundEffectInstance.cpp create mode 100644 src/libXFX/RasterizerState.cpp diff --git a/README.md b/README.md index 26542af..e20a7a9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ As of this writing, XFX Contains the following libraries: * libmscorlib - Provides the necessary classes found in mscorlib.dll to support the other libraries * libSystem - Implements any types in the System.dll required by the other libs * libSystem.Windows - A re-implementation of the System.Windows.dll found on Windows Phone, to allow the creation of GUI-driven applications -* libSystem.Xml - Implements the functions found in System.Xml.dll +* libSystem.Xml - Implements the functions found in System.Xml.dll and System.Xml.Serialization.dll * libXFX - Implements the functions found in Microsoft.Xna.Framework.dll * libXFX.Game - Implements the functions found in Microsoft.Xna.Framework.Game.dll diff --git a/XFX.sln b/XFX.sln index 2759cb4..b5e6eee 100644 --- a/XFX.sln +++ b/XFX.sln @@ -1,9 +1,10 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{888801DD-E68C-4BDE-8B21-890076EF7A59}" ProjectSection(SolutionItems) = preProject README.md = README.md + include\xmem.h = include\xmem.h EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libXFX", "src\libXFX\libXFX.vcxproj", "{379FFCFD-88FA-46D6-A686-CAE8F58652FC}" diff --git a/include/Audio.h b/include/Audio.h index d3b1475..e4d184c 100644 --- a/include/Audio.h +++ b/include/Audio.h @@ -19,6 +19,9 @@ #include "Audio/AudioEmitter.h" #include "Audio/AudioEngine.h" #include "Audio/AudioListener.h" +#include "Audio/DynamicSoundEffectInstance.h" +#include "Audio/SoundEffect.h" +#include "Audio/SoundEffectInstance.h" // // Structs diff --git a/include/Audio/DynamicSoundEffectInstance.h b/include/Audio/DynamicSoundEffectInstance.h index 7852715..2543258 100644 --- a/include/Audio/DynamicSoundEffectInstance.h +++ b/include/Audio/DynamicSoundEffectInstance.h @@ -1,14 +1,19 @@ /***************************************************************************** * DynamicSoundEffectInstance.h * * * - * XFX::Audio::DynamicSoundEffectInstance definition file * + * XFX::Audio::DynamicSoundEffectInstance definition file * * Copyright (c) XFX Team. All Rights Reserved * *****************************************************************************/ +#ifndef _XFX_AUDIO_DYNAMICSOUNDEFFECTINSTANCE_ +#define _XFX_AUDIO_DYNAMICSOUNDEFFECTINSTANCE_ + #include