Author: dhudson Date: 2006-11-26 03:34:46 -0500 (Sun, 26 Nov 2006) New Revision: 68467
Removed: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/Components/ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameEventArgs.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorConverter.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorTranslator.cs Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/Game.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameTime.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GraphicsDeviceManager.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/CreateOptions.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/DeviceType.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsAdapter.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsDevice.cs trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/PresentationParameters.cs Log: delete obselete files. finish stubbing out some more Deleted: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorConverter.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorConverter.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorConverter.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -1,239 +0,0 @@ -// -// System.Drawing.ColorConverter -// -// Authors: -// Gonzalo Paniagua Javier ([EMAIL PROTECTED]) -// Ravindra ([EMAIL PROTECTED]) -// -// Copyright (C) 2002 Ximian, Inc. http://www.ximian.com -// Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com) -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -using System.Collections; -using System.ComponentModel; -using System.Globalization; -using System.Text; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System; - -namespace Microsoft.Xna.Framework.Graphics -{ - internal class ColorConverter : TypeConverter - { - static StandardValuesCollection cached; - static object creatingCached = new object (); - - internal ColorConverter () { } - - public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) - { - if (sourceType == typeof (string)) - return true; - - return base.CanConvertFrom (context, sourceType); - } - - public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) - { - if (destinationType == typeof (InstanceDescriptor)) - return true; - - return base.CanConvertTo (context, destinationType); - } - - public override object ConvertFrom (ITypeDescriptorContext context, - CultureInfo culture, - object value) - { - string s = value as string; - if (s == null) - return base.ConvertFrom (context, culture, value); - - s = s.Trim (); - - if (s.Length == 0) { - return Color.Empty; - } - - object named = Color.NamedColors [s]; - if (named != null) - return (Color) named; - - named = Color.SystemColors [s]; - if (named != null) - return (Color) named; - - String numSeparator = culture.TextInfo.ListSeparator; - - Int32Converter converter = new Int32Converter (); - - object result = null; - - if (s.IndexOf (numSeparator) == -1) { - if ((s.Length == 8 && (s.StartsWith ("0x") || s.StartsWith ("0X"))) - || (s.Length == 7 && s.StartsWith ("#"))) { - result = Color.FromArgb (-16777216 | (int) converter. - ConvertFromString (context, culture, s)); - } - else if ((s.Length == 5 && (s.StartsWith ("0x") || s.StartsWith ("0X"))) - || (s.Length == 4 && s.StartsWith ("#"))) { - int i = (int) converter.ConvertFromString (context, culture, s); - i = ((i & 0xf00) << 12) | ((i & 0xf00) << 8) | - ((i & 0xf0) << 8) | ((i & 0xf0) << 4) | - ((i & 0xf) << 4) | (i & 0xf); - result = Color.FromArgb ( -16777216 | i ); - } else if (s.StartsWith ("#") && (s.Length > 9) && !s.StartsWith ("#0x")) { - //throw new Exception (Locale.GetText ("{0} isn't a valid color (integer too large).", s)); - } - } - - if (result == null) { - String [] components = s.Split (numSeparator.ToCharArray ()); - - // MS seems to convert the indivual component to int before - // checking the number of components - int[] numComponents = new int[components.Length]; - for (int i = 0; i < numComponents.Length; i++) { - numComponents[i] = (int) converter.ConvertFrom (context, - culture, components[i]); - } - - switch (components.Length) { - case 1: - result = Color.FromArgb (numComponents[0]); - break; - case 3: - result = Color.FromArgb (numComponents[0], numComponents[1], - numComponents[2]); - break; - case 4: - result = Color.FromArgb (numComponents[0], numComponents[1], - numComponents[2], numComponents[3]); - break; - default: - throw new ArgumentException (s + " is not a valid color value."); - } - } - - if (result != null) { - Color resultColor = (Color) result; - - // Look for a named or system color with those values - foreach (Color c in Color.NamedColors.Values) { - if (c == resultColor) - return c; - } - - foreach (Color c in Color.SystemColors.Values) { - if (c == resultColor) - return c; - } - } - - return result; - } - - public override object ConvertTo (ITypeDescriptorContext context, - CultureInfo culture, - object value, - Type destinationType) - { - if ((destinationType == typeof (string)) && (value is Color)) { - Color color = (Color) value; - - if (color == Color.Empty) { - return string.Empty; - } - - if (color.IsKnownColor) { - return color.Name; - } - - if (color.IsNamedColor) - return color.Name; - - String numSeparator = culture.TextInfo.ListSeparator; - - StringBuilder sb = new StringBuilder (); - if (color.A != 255) { - sb.Append (color.A); - sb.Append (numSeparator); - sb.Append (" "); - } - sb.Append (color.R); - sb.Append (numSeparator); - sb.Append (" "); - - sb.Append (color.G); - sb.Append (numSeparator); - sb.Append (" "); - - sb.Append (color.B); - return sb.ToString (); - } - - if (destinationType == typeof (InstanceDescriptor) && value is Color) { - Color c = (Color)value; - if (c.IsKnownColor){ - return new InstanceDescriptor (typeof (SystemColors).GetProperty (c.Name), null); - } else { - MethodInfo met = typeof(Color).GetMethod ("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int), typeof(int) } ); - return new InstanceDescriptor (met, new object[] {c.A, c.R, c.G, c.B }); - } - } - - return base.ConvertTo (context, culture, value, destinationType); - } - - public override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context) - { - lock (creatingCached) { - if (cached != null) - return cached; - - ICollection named = (ICollection) Color.NamedColors.Values; - ICollection system = (ICollection) Color.SystemColors.Values; - Array colors = Array.CreateInstance (typeof (Color), named.Count + system.Count); - named.CopyTo (colors, 0); - system.CopyTo (colors, named.Count); - Array.Sort (colors, 0, colors.Length, new CompareColors ()); - cached = new StandardValuesCollection (colors); - } - - return cached; - } - - public override bool GetStandardValuesSupported (ITypeDescriptorContext context) - { - return true; - } - - class CompareColors : IComparer - { - public int Compare (object x, object y) - { - return String.Compare (((Color) x).Name, ((Color) y).Name); - } - } - } -} Deleted: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorTranslator.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorTranslator.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/ColorTranslator.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -1,202 +0,0 @@ -// -// System.Drawing.ColorTranslator.cs -// -// Authors: -// Dennis Hayes ([EMAIL PROTECTED]) -// Ravindra ([EMAIL PROTECTED]) -// Sebastien Pouliot <[EMAIL PROTECTED]> -// -// Copyright (C) 2001 Ximian, Inc. http://www.ximian.com -// Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com) -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -using System; -using System.ComponentModel; - -namespace Microsoft.Xna.Framework.Graphics -{ - - internal sealed class ColorTranslator { - - private ColorTranslator () - { - } - - internal static Color FromHtml (string htmlColor) - { - if ((htmlColor == null) || (htmlColor.Length == 0)) - return Color.Empty; - - switch (htmlColor.ToLower ()) { - case "buttonface": - return SystemColors.Control; - case "captiontext": - return SystemColors.ActiveCaptionText; - case "threeddarkshadow": - return SystemColors.ControlDarkDark; - case "background": - return SystemColors.Desktop; - case "buttontext": - return SystemColors.ControlText; - case "infobackground": - return SystemColors.Info; - } - TypeConverter converter = TypeDescriptor.GetConverter (typeof (Color)); - return (Color) converter.ConvertFromString (htmlColor); - } - - internal static Color FromOle (int oleColor) - { - // OleColor format is BGR - int R = oleColor & 0xFF; - int G = (oleColor >> 8) & 0xFF; - int B = (oleColor >> 16) & 0xFF; - - Color retcolor = Color.FromArgb (255, R, G, B); - foreach (Color c in Color.NamedColors.Values) { - if (c == retcolor) - return c; - } - - foreach (Color c in Color.SystemColors.Values) { - if (c == retcolor) - return c; - } - - return retcolor; - } - - internal static Color FromWin32 (int win32Color) - { - // Win32Color format is BGR - int R = win32Color & 0xFF; - int G = (win32Color >> 8) & 0xFF; - int B = (win32Color >> 16) & 0xFF; - - Color retcolor = Color.FromArgb (255, R, G, B); - foreach (Color c in Color.NamedColors.Values) { - if (c == retcolor) - return c; - } - - foreach (Color c in Color.SystemColors.Values) { - if (c == retcolor) - return c; - } - - return retcolor; - } - - internal static string ToHtml (Color c) - { - KnownColor kc; - if (c.IsEmpty) - return String.Empty; - - string result; - if(c.IsSystemColor) { - kc = c.ToKnownColor(); - switch (kc) { - case KnownColor.ActiveBorder: - return "activeborder"; - case KnownColor.ActiveCaption: - return "activecaption"; - case KnownColor.ActiveCaptionText: - return "captiontext"; - case KnownColor.AppWorkspace: - return "appworkspace"; - case KnownColor.Control: - return "buttonface"; - case KnownColor.ControlDark: - return "buttonshadow"; - case KnownColor.ControlDarkDark: - return "threeddarkshadow"; - case KnownColor.ControlLight: - return "buttonface"; - case KnownColor.ControlLightLight: - return "buttonhighlight"; - case KnownColor.ControlText: - return "buttontext"; - case KnownColor.Desktop: - return "background"; - case KnownColor.GrayText: - return "graytext"; - case KnownColor.Highlight: - case KnownColor.HotTrack: - return "highlight"; - case KnownColor.HighlightText: - return "highlighttext"; - case KnownColor.InactiveBorder: - return "inactiveborder"; - case KnownColor.InactiveCaption: - return "inactivecaption"; - case KnownColor.InactiveCaptionText: - return "inactivecaptiontext"; - case KnownColor.Info: - return "infobackground"; - case KnownColor.InfoText: - return "infotext"; - case KnownColor.Menu: - return "menu"; - case KnownColor.MenuText: - return "menutext"; - case KnownColor.ScrollBar: - return "scrollbar"; - case KnownColor.Window: - return "window"; - case KnownColor.WindowFrame: - return "windowframe"; - case KnownColor.WindowText: - return "windowtext"; - default: - return String.Empty; - } - } - - if (c.IsNamedColor) { - if (c == Color.LightGray) { - result = "LightGrey"; - } - else - result = c.Name; - } - else - result = String.Format ("#{0:X2}{1:X2}{2:X2}", c.R, c.G, c.B); - - return result; - } - - internal static int ToOle (Color c) - { - // OleColor format is BGR, same as Win32 - - return ((c.B << 16) | (c.G << 8) | c.R); - } - - internal static int ToWin32 (Color c) - { - // Win32Color format is BGR, Same as OleColor - - return ((c.B << 16) | (c.G << 8) | c.R); - } - } -} Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/CreateOptions.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/CreateOptions.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/CreateOptions.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -39,36 +39,37 @@ public enum CreateOptions { /// <summary> + /// No options specified. + /// </summary> + None = 0, + /// <summary> + /// Specifies software vertex processing. + /// </summary> + SoftwareVertexProcessing = 32, + /// <summary> /// Specifies hardware vertex processing. /// </summary> - HardwareVertexProcessing, + HardwareVertexProcessing = 64, /// <summary> /// Specifies mixed vertex processing (both software and hardware). /// </summary> - MixedVertexProcessing, + MixedVertexProcessing = 128, /// <summary> - /// No options specified. - /// </summary> - None, - /// <summary> /// Indicates to the Microsoft Direct3D runtime not to alter the focus window in any way. /// Use with caution! The burden of supporting focus management events (ALT+TAB, and so on) /// falls on the application, and appropriate responses (switching display mode, and so on) /// should be coded. /// </summary> - NoWindowChanges, + NoWindowChanges = 2048, + /// <summary> - /// Forces single-precision processing, setting the floating-point unit to single-precision - /// round-to-nearest mode. - /// </summary> - SinglePrecision, - /// <summary> /// Forces single-threaded processing. /// </summary> - SingleThreaded, + SingleThreaded = 268435456, /// <summary> - /// Specifies software vertex processing. + /// Forces single-precision processing, setting the floating-point unit to single-precision + /// round-to-nearest mode. /// </summary> - SoftwareVertexProcessing + SinglePrecision = 536870912, } } Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/DeviceType.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/DeviceType.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/DeviceType.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -39,14 +39,14 @@ /// <summary> /// Hardware rasterization. Shading is done with software, hardware, or mixed transform and lighting. /// </summary> - Hardware, + Hardware = 1, /// <summary> - /// A null version of the reference rasterizer. + /// Microsoft Direct3D features are implemented in software; however, the reference rasterizer uses special CPU instructions whenever possible. /// </summary> - NullReference, + Reference = 2, /// <summary> - /// Microsoft Direct3D features are implemented in software; however, the reference rasterizer uses special CPU instructions whenever possible. + /// A null version of the reference rasterizer. /// </summary> - Reference + NullReference = 4 } } Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsAdapter.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsAdapter.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsAdapter.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -26,28 +26,73 @@ #endregion License using System; -using System.Collections.Generic; -using System.Text; +using System.Collections.ObjectModel; namespace Microsoft.Xna.Framework.Graphics { - /// <summary> - /// Provides methods to retrieve and manipulate graphics adapters. - /// </summary> - public class GraphicsAdapter : IDisposable + + public sealed class GraphicsAdapter : IDisposable { - GraphicsAdapter() - { - throw new Exception("The method or operation is not implemented."); - } + + public static bool operator !=(GraphicsAdapter l, GraphicsAdapter r){ throw new NotImplementedException(); } + + public static bool operator ==(GraphicsAdapter l, GraphicsAdapter r){ throw new NotImplementedException(); } - #region IDisposable Members + + public static ReadOnlyCollection<GraphicsAdapter> Adapters { get{ throw new NotImplementedException(); } } + + public DisplayMode CurrentDisplayMode { get{ throw new NotImplementedException(); } } + + public static GraphicsAdapter DefaultAdapter { get{ throw new NotImplementedException(); } } + + public string Description { get{ throw new NotImplementedException(); } } + + public int DeviceId { get{ throw new NotImplementedException(); } } + + public Guid DeviceIdentifier { get{ throw new NotImplementedException(); } } + + public string DeviceName { get{ throw new NotImplementedException(); } } + + public string DriverDll { get{ throw new NotImplementedException(); } } + + public Version DriverVersion { get{ throw new NotImplementedException(); } } + + public bool IsDefaultAdapter { get{ throw new NotImplementedException(); } } + + public IntPtr MonitorHandle { get{ throw new NotImplementedException(); } } + + public int Revision { get{ throw new NotImplementedException(); } } + + public int SubSystemId { get{ throw new NotImplementedException(); } } + + public DisplayModeCollection SupportedDisplayModes { get{ throw new NotImplementedException(); } } + + public int VendorId { get{ throw new NotImplementedException(); } } - public void Dispose() - { - throw new Exception("The method or operation is not implemented."); - } - - #endregion + + public bool CheckDepthStencilMatch(DeviceType deviceType, SurfaceFormat adapterFormat, SurfaceFormat renderTargetFormat, DepthFormat depthStencilFormat){ throw new NotImplementedException(); } + + public bool CheckDeviceFormat(DeviceType deviceType, SurfaceFormat adapterFormat, ResourceUsage usage, QueryUsages queryUsages, ResourceType resourceType, DepthFormat checkFormat){ throw new NotImplementedException(); } + + public bool CheckDeviceFormat(DeviceType deviceType, SurfaceFormat adapterFormat, ResourceUsage usage, QueryUsages queryUsages, ResourceType resourceType, SurfaceFormat checkFormat){ throw new NotImplementedException(); } + + public bool CheckDeviceFormatConversion(DeviceType deviceType, SurfaceFormat sourceFormat, SurfaceFormat targetFormat){ throw new NotImplementedException(); } + + public bool CheckDeviceMultiSampleType(DeviceType deviceType, SurfaceFormat surfaceFormat, bool isFullScreen, MultiSampleType sampleType){ throw new NotImplementedException(); } + + public bool CheckDeviceMultiSampleType(DeviceType deviceType, SurfaceFormat surfaceFormat, bool isFullScreen, MultiSampleType sampleType, out int qualityLevels){ throw new NotImplementedException(); } + + public bool CheckDeviceType(DeviceType deviceType, SurfaceFormat displayFormat, SurfaceFormat backBufferFormat, bool isFullScreen){ throw new NotImplementedException(); } + + public void Dispose(){ throw new NotImplementedException(); } + protected void Dispose(bool __p1){ throw new NotImplementedException(); } + + public override sealed bool Equals(object obj){ throw new NotImplementedException(); } + + public GraphicsDeviceCapabilities GetCapabilities(DeviceType deviceType){ throw new NotImplementedException(); } + + public override sealed int GetHashCode(){ throw new NotImplementedException(); } + + public bool IsDeviceTypeAvailable(DeviceType deviceType){ throw new NotImplementedException(); } } -} +} \ No newline at end of file Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsDevice.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsDevice.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/GraphicsDevice.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -25,59 +25,198 @@ */ #endregion License - +using Microsoft.Xna.Framework; using System; -using System.Collections.Generic; -using System.Text; -using Tao.OpenGl; -using SdlDotNet.Graphics; namespace Microsoft.Xna.Framework.Graphics { - /// <summary> - /// Performs primitive-based rendering, creates resources, handles system-level variables, - /// adjusts gamma ramp levels, gets and sets palettes, and creates shaders. - /// </summary> + public class GraphicsDevice : IDisposable { - public GraphicsDevice( - GraphicsAdapter adapter, - DeviceType deviceType, - IntPtr renderWindowHandle, - CreateOptions creationOptions, - PresentationParameters[] presentationParameters - ) - { - throw new Exception("The method or operation is not implemented."); - } - public void Clear(Color color) - { - Gl.glClearColor(color.R/256, color.G/256, color.B/256, color.A/256); - } + public GraphicsDevice(GraphicsAdapter adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateOptions creationOptions, PresentationParameters presentationParameters) { throw new NotImplementedException(); } - public void BeginScene() - { - throw new Exception("The method or operation is not implemented."); - } - public void EndScene() - { - throw new Exception("The method or operation is not implemented."); - } + public static bool operator !=(GraphicsDevice left, GraphicsDevice right) { throw new NotImplementedException(); } - public void Present() - { - throw new Exception("The method or operation is not implemented."); - } + public static bool operator ==(GraphicsDevice left, GraphicsDevice right) { throw new NotImplementedException(); } - #region IDisposable Members - public void Dispose() - { - throw new Exception("The method or operation is not implemented."); - } + public ClipPlaneCollection ClipPlanes { get { throw new NotImplementedException(); } } - #endregion + public GraphicsDeviceCreationParameters CreationParameters { get { throw new NotImplementedException(); } } + + public DepthStencilBuffer DepthStencilBuffer { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + public DisplayMode DisplayMode { get { throw new NotImplementedException(); } } + + public int DriverLevel { get { throw new NotImplementedException(); } } + + public GraphicsDeviceCapabilities GraphicsDeviceCapabilities { get { throw new NotImplementedException(); } } + + public GraphicsDeviceStatus GraphicsDeviceStatus { get { throw new NotImplementedException(); } } + + public IndexBuffer Indices { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + public bool IsDisposed { get { throw new NotImplementedException(); } } + + public PixelShader PixelShader { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + public PresentationParameters PresentationParameters { get { throw new NotImplementedException(); } } + + public RasterStatus RasterStatus { get { throw new NotImplementedException(); } } + + // TODO. + //public RenderState RenderState { get{ throw new NotImplementedException(); } } + + // TODO + //public SamplerStateCollection SamplerStates { get{ throw new NotImplementedException(); } } + + public Rectangle ScissorRectangle { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + public bool SoftwareVertexProcessing { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + // TODO + //public TextureCollection Textures { get{ throw new NotImplementedException(); } } + + // TODO + //public VertexDeclaration VertexDeclaration { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + // TODO + //public SamplerStateCollection VertexSamplerStates { get{ throw new NotImplementedException(); } } + + public VertexShader VertexShader { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + // TODO + //public TextureCollection VertexTextures { get{ throw new NotImplementedException(); } } + + // TODO + //public VertexStreamCollection Vertices { get { throw new NotImplementedException(); } } + + public Viewport Viewport { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + + public event EventHandler DeviceLost; + + public event EventHandler DeviceReset; + + public event EventHandler DeviceResetting; + + public event EventHandler Disposing; + + public event EventHandler<ResourceCreatedEventArgs> ResourceCreated; + + public event EventHandler<ResourceDestroyedEventArgs> ResourceDestroyed; + + + public void Clear(Color color) { throw new NotImplementedException(); } + + public void Clear(ClearOptions options, Color color, float depth, int stencil) { throw new NotImplementedException(); } + + public void Clear(ClearOptions options, Vector4 color, float depth, int stencil) { throw new NotImplementedException(); } + + public void Clear(ClearOptions options, Color color, float depth, int stencil, Rectangle[] regions) { throw new NotImplementedException(); } + + public void Clear(ClearOptions options, Vector4 color, float depth, int stencil, Rectangle[] regions) { throw new NotImplementedException(); } + + public void Dispose() { throw new NotImplementedException(); } + + protected virtual void Dispose(bool __p1) { throw new NotImplementedException(); } + + public void DrawIndexedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount) { throw new NotImplementedException(); } + + public void DrawPrimitives(PrimitiveType primitiveType, int startVertex, int primitiveCount) { throw new NotImplementedException(); } + + public void DrawUserIndexedPrimitives<T>(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, int[] indexData, int indexOffset, int primitiveCount) { throw new NotImplementedException(); } + + public void DrawUserIndexedPrimitives<T>(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int numVertices, short[] indexData, int indexOffset, int primitiveCount) { throw new NotImplementedException(); } + + public void DrawUserPrimitives<T>(PrimitiveType primitiveType, T[] vertexData, int vertexOffset, int primitiveCount) { throw new NotImplementedException(); } + + public override bool Equals(object obj) { throw new NotImplementedException(); } + + public void EvictManagedResources() { throw new NotImplementedException(); } + + public GammaRamp GetGammaRamp() { throw new NotImplementedException(); } + + public override int GetHashCode() { throw new NotImplementedException(); } + + public bool[] GetPixelShaderBooleanConstant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public int[] GetPixelShaderInt32Constant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public float[] GetPixelShaderSingleConstant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public RenderTarget GetRenderTarget(int renderTargetIndex) { throw new NotImplementedException(); } + + public bool[] GetVertexShaderBooleanConstant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public int[] GetVertexShaderInt32Constant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public float[] GetVertexShaderSingleConstant(int startRegister, int constantCount) { throw new NotImplementedException(); } + + public void Present() { throw new NotImplementedException(); } + + public void Present(IntPtr overrideWindowHandle) { throw new NotImplementedException(); } + + public void Present(Rectangle? sourceRectangle, Rectangle? destinationRectangle, IntPtr overrideWindowHandle) { throw new NotImplementedException(); } + + protected void raise_DeviceLost(object value0, EventArgs value1) { throw new NotImplementedException(); } + + protected void raise_DeviceReset(object value0, EventArgs value1) { throw new NotImplementedException(); } + + protected void raise_DeviceResetting(object value0, EventArgs value1) { throw new NotImplementedException(); } + + protected void raise_Disposing(object value0, EventArgs value1) { throw new NotImplementedException(); } + + protected void raise_ResourceCreated(object value0, ResourceCreatedEventArgs value1) { throw new NotImplementedException(); } + + protected void raise_ResourceDestroyed(object value0, ResourceDestroyedEventArgs value1) { throw new NotImplementedException(); } + + public void Reset() { throw new NotImplementedException(); } + + public void Reset(PresentationParameters presentationParameters) { throw new NotImplementedException(); } + + public void ResolveBackBuffer(Texture2D resolveTarget) { throw new NotImplementedException(); } + + public void ResolveBackBuffer(Texture2D resolveTarget, int backBufferIndex) { throw new NotImplementedException(); } + + public void ResolveRenderTarget(int index) { throw new NotImplementedException(); } + + public void SetGammaRamp(bool calibrate, GammaRamp ramp) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, bool[] constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, float[] constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, int[] constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, Matrix constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, Matrix[] constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, Vector4 constantData) { throw new NotImplementedException(); } + + public void SetPixelShaderConstant(int startRegister, Vector4[] constantData) { throw new NotImplementedException(); } + + public void SetRenderTarget(int renderTargetIndex, RenderTarget2D renderTarget) { throw new NotImplementedException(); } + + public void SetRenderTarget(int renderTargetIndex, RenderTargetCube renderTarget, CubeMapFace faceType) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, bool[] constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, float[] constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, int[] constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, Matrix constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, Matrix[] constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, Vector4 constantData) { throw new NotImplementedException(); } + + public void SetVertexShaderConstant(int startRegister, Vector4[] constantData) { throw new NotImplementedException(); } + + public override string ToString() { throw new NotImplementedException(); } } } Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/PresentationParameters.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/PresentationParameters.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework/Graphics/PresentationParameters.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -25,30 +25,67 @@ */ #endregion License - using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.Xna.Framework.Graphics { - /// <summary> - /// Contains presentation parameters. - /// </summary> + + [Serializable] public class PresentationParameters : IDisposable { - public PresentationParameters() - { - throw new Exception("The method or operation is not implemented."); - } + + public const int DefaultPresentRate = 0; - #region IDisposable Members + + public PresentationParameters(){ throw new NotImplementedException(); } - public void Dispose() - { - throw new Exception("The method or operation is not implemented."); - } + + public static bool operator !=(PresentationParameters left, PresentationParameters right){ throw new NotImplementedException(); } + + public static bool operator ==(PresentationParameters left, PresentationParameters right){ throw new NotImplementedException(); } - #endregion + + public DepthFormat AutoDepthStencilFormat { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public int BackBufferCount { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public SurfaceFormat BackBufferFormat { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public int BackBufferHeight { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public int BackBufferWidth { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public IntPtr DeviceWindowHandle { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public bool EnableAutoDepthStencil { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public int FullScreenRefreshRateInHz { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } + + public bool IsFullScreen { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public int MultiSampleQuality { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public MultiSampleType MultiSampleType { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public PresentInterval PresentationInterval { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public PresentOptions PresentOptions { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + public SwapEffect SwapEffect { get{ throw new NotImplementedException(); } set{ throw new NotImplementedException(); } } + + + public void Clear(){ throw new NotImplementedException(); } + + public PresentationParameters Clone(){ throw new NotImplementedException(); } + + public void Dispose(){ throw new NotImplementedException(); } + + protected virtual void Dispose(bool __p1){ throw new NotImplementedException(); } + + public override bool Equals(object obj){ throw new NotImplementedException(); } + + public override int GetHashCode(){ throw new NotImplementedException(); } + + public override string ToString(){ throw new NotImplementedException(); } } } Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/Game.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/Game.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/Game.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -41,16 +41,16 @@ public class Game : IComponent, IDisposable { /// <summary>Raised when the game gains focus.</summary> - public event EventHandler<GameEventArgs> Activated; + public event EventHandler Activated; /// <summary>Raised when the game loses focus.</summary> - public event EventHandler<GameEventArgs> Deactivated; + public event EventHandler Deactivated; /// <summary>Raised when the game is being disposed.</summary> [Browsable(false)] public event EventHandler Disposed; /// <summary>Raised when the game is exiting.</summary> - public event EventHandler<GameEventArgs> Exiting; + public event EventHandler Exiting; /// <summary>Raised after the game is initialized but before the first frame.</summary> - public event EventHandler<GameEventArgs> Starting; + public event EventHandler Starting; /// <summary>Raised when an unhandled exception reaches the main loop of the game.</summary> [Browsable(false)] public event EventHandler<UnhandledExceptionEventArgs> UnhandledException; Deleted: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameEventArgs.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameEventArgs.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameEventArgs.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -1,58 +0,0 @@ -#region License -/* -MIT License -Copyright � 2006 The Mono.Xna Team -http://www.taoframework.com -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ -#endregion License - -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Xna.Framework -{ - /// <summary>Provides data for Game events.</summary> - public class GameEventArgs : EventArgs - { - /// <summary>Creates an instance of GameEventArgs.</summary> - /// <param name="game">The game associated with this event.</param> - public GameEventArgs(Game game) - { - m_Game = game; - } - - /// <summary>Gets the Game associated with this event.</summary> - /// <returns>The Game associated with this event.</returns> - public Game Game - { - get - { - return m_Game; - } - } - - private Game m_Game; - } - - -} Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameTime.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameTime.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameTime.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -1,3 +1,31 @@ +#region License +/* +MIT License +Copyright � 2006 The Mono.Xna Team +http://www.taoframework.com +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ +#endregion License + + using System; using System.Collections.Generic; using System.Text; Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GraphicsDeviceManager.cs =================================================================== --- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GraphicsDeviceManager.cs 2006-11-26 05:29:18 UTC (rev 68466) +++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GraphicsDeviceManager.cs 2006-11-26 08:34:46 UTC (rev 68467) @@ -1,3 +1,30 @@ +#region License +/* +MIT License +Copyright � 2006 The Mono.Xna Team +http://www.taoframework.com +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ +#endregion License + using System; using System.Collections.Generic; using System.Text;
_______________________________________________ Mono-patches maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-patches
