Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #198 from rlabrecque/monogame-sdl2
Browse files Browse the repository at this point in the history
#193 Using Statement Cleanup - Part 1 - Organize
  • Loading branch information
flibitijibibo committed Apr 17, 2014
2 parents c092e6f + 011d436 commit ad5afb2
Show file tree
Hide file tree
Showing 52 changed files with 85 additions and 34 deletions.
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/AudioEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
*/
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.IO;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/CueData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
*/
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.IO;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/InstancePlayLimitException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
*/
#endregion

#region Using Statements
using System;
using System.Runtime.InteropServices;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/NoAudioHardwareException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
*/
#endregion

#region Using Statements
using System;
using System.Runtime.InteropServices;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/SoundBank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
*/
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.IO;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/WaveBank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
*/
#endregion

#region Using Statements
using System;
using System.IO;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/XACTInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
*/
#endregion

#region Using Statements
using System;

using OpenTK.Audio.OpenAL;
#endregion

namespace Microsoft.Xna.Framework.Audio
{
Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/Content/ContentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Reflection;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
8 changes: 3 additions & 5 deletions MonoGame.Framework/Content/ContentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@

#region Using Statements
using System;
using System.IO;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Path = System.IO.Path;
using System.Diagnostics;

using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework;
#endregion

Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/Content/ContentReaders/ColorReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#region Using Statements
using System;

using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using System.Diagnostics;

using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
5 changes: 3 additions & 2 deletions MonoGame.Framework/Content/ContentReaders/EffectReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
5 changes: 3 additions & 2 deletions MonoGame.Framework/Content/ContentReaders/ModelReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

#region Using Statements
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Xna.Framework.Graphics;

using Microsoft.Xna.Framework.Content;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/Content/ContentReaders/RayReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/Content/ContentReaders/TextureReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ MIT License

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/Content/ContentTypeReaderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ MIT License

#region Using Statements
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Collections.Generic;
#endregion

namespace Microsoft.Xna.Framework.Content
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Content/LzxDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
*/
#endregion

#region Using Statements
using System;
using System.Diagnostics;
#endregion

namespace Microsoft.Xna.Framework.Content
{
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;

using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
#endregion
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/GamePlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/GameWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#region Using Statements
using System;
using System.ComponentModel;

using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
#endregion
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/Graphics/DirectionalLight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
#endregion

Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Graphics/PresentationParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*/
#endregion

#region Using Statements
using System;
#endregion

namespace Microsoft.Xna.Framework.Graphics
{
Expand Down
2 changes: 2 additions & 0 deletions MonoGame.Framework/Graphics/RenderTargetBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*/
#endregion

#region Using Statements
using System;
#endregion

namespace Microsoft.Xna.Framework.Graphics
{
Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/Graphics/SpriteBatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -794,4 +794,4 @@ void CheckValid(SpriteFont spriteFont, StringBuilder text)

#endregion
}
}
}
1 change: 1 addition & 0 deletions MonoGame.Framework/Graphics/Texture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#region Using Statements
using System;
using System.Diagnostics;

using OpenTK.Graphics.OpenGL;
#endregion

Expand Down
7 changes: 3 additions & 4 deletions MonoGame.Framework/Graphics/Texture2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
using System.IO;
using System.Runtime.InteropServices;

using SDL2;
using OpenTK.Graphics.OpenGL;
using GLPixelFormat = OpenTK.Graphics.OpenGL.PixelFormat;
using SDL2;
#endregion

namespace Microsoft.Xna.Framework.Graphics
Expand Down Expand Up @@ -215,7 +214,7 @@ int elementCount
IntPtr dataPtr = (IntPtr) (dataHandle.AddrOfPinnedObject().ToInt64() + startByte);
OpenGLDevice.Instance.BindTexture(texture);
if (glFormat == (GLPixelFormat) All.CompressedTextureFormats)
if (glFormat == (PixelFormat) All.CompressedTextureFormats)
{
int dataLength;
if (elementCount > 0)
Expand Down Expand Up @@ -357,7 +356,7 @@ int elementCount

OpenGLDevice.Instance.BindTexture(texture);

if (glFormat == (GLPixelFormat) All.CompressedTextureFormats)
if (glFormat == (PixelFormat) All.CompressedTextureFormats)
{
throw new NotImplementedException("GetData, CompressedTexture");
}
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/Graphics/Vertices/VertexDeclaration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#region Using Statements
using System;
using System.Collections.Generic;

using OpenTK.Graphics.OpenGL;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#endregion

#region Using Statements
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Runtime.InteropServices;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Microsoft.Xna.Framework.Graphics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#endregion

#region Using Statements
using System.Runtime.Serialization;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
#endregion

namespace Microsoft.Xna.Framework.Graphics
Expand Down
1 change: 1 addition & 0 deletions MonoGame.Framework/GraphicsDeviceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#region Using Statements
using System;

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input.Touch;
#endregion
Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/IUpdateable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
#endregion

#region Using Statemenents
#region Using Statements
using System;
#endregion

Expand Down
Loading

0 comments on commit ad5afb2

Please sign in to comment.