Commit graph

506 commits

Author SHA1 Message Date
the_fiddler 4b9e25af03 Made types used by X11WindowInfo public. 2009-08-11 21:02:52 +00:00
the_fiddler a8f099e035 Added missing license information and removed unused code. 2009-08-11 20:57:54 +00:00
the_fiddler fbec76e858 Made class public.
Added missing license information.
2009-08-11 20:55:43 +00:00
the_fiddler dcb89cb4fb Removed unused code. 2009-08-11 20:51:02 +00:00
the_fiddler 11027985ad Merged fix for issue [#1074]: " X11XrandrDisplayDevice on Xming ---> Argument is out of range." from 0.9.8 branch. 2009-08-10 11:36:26 +00:00
the_fiddler 87e925f057 Merged improved XRandR handling from 0.9.8 branch. 2009-08-04 09:35:31 +00:00
the_fiddler e9d34a62ce Implemented CreateKeyboardDriver (currently disabled). 2009-08-04 08:49:15 +00:00
the_fiddler a3f61f6d65 Marked all IPlatformFactory interface implementations as virtual. 2009-07-24 21:52:01 +00:00
the_fiddler dc94314e3a Added new EglWindowInfo constructor.
Added missing license information.
2009-07-24 21:51:06 +00:00
the_fiddler 58037b9cb3 Initial implementation. 2009-07-24 21:50:21 +00:00
the_fiddler dea37b8547 Implemented IDisposable pattern. 2009-07-24 21:19:42 +00:00
the_fiddler 4100246d49 Initial implementation. 2009-07-24 21:13:46 +00:00
the_fiddler 593662eacf Removed EGL_ prefix from all EGL constants. 2009-07-24 21:12:59 +00:00
the_fiddler 2e345ed6c8 Replaced tabs with spaces. 2009-07-19 17:50:41 +00:00
the_fiddler 4847646cc8 Added INativeWindow.CreateKeyboardDriver()
Added INativeWindow.KeyPress event (KeyPressEventArgs).
Removed INativeWindow.Icon property.
2009-07-19 17:49:51 +00:00
the_fiddler f42775f482 Replaced tabs with spaces. 2009-07-19 16:09:46 +00:00
the_fiddler 3f66949fb2 * EglContext.cs: Fixed build error (class committed by mistake - it is not yet implemented). 2009-07-16 13:36:41 +00:00
the_fiddler 1a7fe71e26 Added EGL bindings based on http://www.koushikdutta.com/2008/08/net-compact-framework-wrapper-for.html 2009-07-15 23:17:41 +00:00
the_fiddler 170568c57d Fixed XML docs and remove unnecessary CLSCompliance attributes. 2009-06-28 10:52:58 +00:00
the_fiddler a405f07d55 Implemented multisampling on MacOS (untested). 2009-06-26 20:06:31 +00:00
the_fiddler 77788d19a4 Implemented multisampling on X11. 2009-06-26 20:01:22 +00:00
the_fiddler 8c800d619d Removed obsolete code.
Implemented X11GLNative.IconChanged event.
2009-06-24 14:42:40 +00:00
the_fiddler 623015650b Removed obsolete code. 2009-06-24 14:38:48 +00:00
the_fiddler d5efed9045 Removed obsolete IResizable, DisplayMode and ColorMode APIs.
Marked carbon API class as internal.
Added a large number of missing XML comments.
2009-06-04 11:31:02 +00:00
the_fiddler 783c38446b Marked platform-specific APIs as internal.
Added ObsoleteAttribute to obsolete functionality.
2009-06-04 11:21:33 +00:00
the_fiddler fc5db8a9a6 Made X11 structs, enums and functions internal. OpenTK should not expose platform-specific APIs. 2009-06-04 10:57:26 +00:00
the_fiddler 1fda34a76c Marked as obsolete. 2009-06-04 10:56:17 +00:00
the_fiddler cb661c2dca Merged gw-next2 branch to trunk. 2009-06-02 15:49:39 +00:00
the_fiddler b1b3706e64 Fixed recursion that between WinGraphicsMode.SelectGraphicsModeARB and GraphicsMode.Default.
Fixed acceleration attribute in WinGraphicsMode.SelectGraphicsModeARB. Now, antialiasing works on nvidia drivers, too.
2009-06-01 13:24:18 +00:00
the_fiddler 66efa41a8f WinGraphicsMode now uses wglChoosePixelFormatARB, if available. This allows the use of FSAA modes. 2009-06-01 11:05:31 +00:00
the_fiddler 190e9cc7c0 Use GraphicsMode.Default for DummyGLContext. 2009-05-31 16:02:15 +00:00
the_fiddler 93f6050fe6 Replaced XAutoRepeatOff by XkbSetDetectableAutoRepeat, because the former must be reset before the program exits (and this is not always possible). 2009-05-30 21:41:45 +00:00
the_fiddler 4334ab38e7 Added XAutoRepeatOn() method. 2009-05-30 21:40:42 +00:00
the_fiddler b7390e11d2 Added GraphicsContext.GetCurrentContextDelegate to IPlatformFactory.
Improved CreateDummyContext logic to detect and use the context handle of the current thread or a specified handle.
Removed GetCurrentContext() methods from platform-specific context implementations (everything now goes through the relevant IPlatformFactories).
2009-05-30 19:27:52 +00:00
the_fiddler 6699b7ea9f Added call to XAutoRepeatOff() to disable keyboard autorepeat on X11Input. 2009-05-30 18:15:13 +00:00
the_fiddler 14eefe7e5c Merged TextPrinter optimization changes from gw-next2 branch. 2009-05-27 18:40:29 +00:00
the_fiddler d1ab1df7f4 Ensured IWindowInfo.Dispose() is called when the GLControl handle is destroyed.
WinGLContext.SwapBuffers now throws an exception on failure.
2009-05-19 09:48:47 +00:00
the_fiddler 28e4f5f615 Added diagnostic message when ReleaseDC fails. 2009-05-19 09:45:36 +00:00
the_fiddler 42d467d57f Modified Wgl.SupportsExtension to be more defensive when calling Wgl.Arb.GetExtensionString. It now bails out if the extension string is empty. 2009-05-19 09:44:47 +00:00
the_fiddler 9912691bd5 Fixed potential NRE during extension loading. 2009-05-11 10:31:50 +00:00
kanato 721e45a5d4 Implement PointToClient for MacOS. 2009-05-11 01:10:09 +00:00
kanato 043421c7bc Add overload to OpenTK.Platform.Utilities.CreateGraphicsContext which takes version number and flag parameters. Deprecate old CreateGraphicsContext methods. 2009-05-10 04:49:31 +00:00
the_fiddler 2f54b29ed8 Added initial support for GameWindow.PointToClient. 2009-05-07 19:48:22 +00:00
kanato bc236a7c0b Fix AGL buffer rectangle when destination control is inside a container inside a form. 2009-05-07 16:32:15 +00:00
the_fiddler 67d8b1f54c Fixed potential crash-bug in the WGL_ARB_create_context path (missing 0 attribute). 2009-04-29 11:02:12 +00:00
the_fiddler eb183f4cfe Added stack traces to automatic error checking.
Added GraphicsContext.ErrorChecking property to temporarily disable error checking if necessary.
Error checking is now added to all functions in debug mode (the generator would miss specific CLS-compliant overloads before).
2009-03-29 21:41:30 +00:00
the_fiddler 9265747541 Fixed all known build warnings, apart from missing xml comments. 2009-03-25 21:53:12 +00:00
the_fiddler c0f573f996 * X11GLNative.cs: Ensure that Width and Height properties return valid values in the OnLoad event. 2009-03-23 11:57:49 +00:00
the_fiddler 93a467a11f Moved GraphicsMode to IGraphicsContext as it is universally useful.
Implemented GraphicsMode property on X11 and Mac OS X.
Replaced tabs with spaces in AglContext.cs.
2009-03-23 11:41:11 +00:00
the_fiddler 7eb149fa7c * Platform/X11/X11GLContext.cs: Added workaround for buggy Amd linux drivers. Added "None" to context attributes, as specified by the specs. 2009-03-20 23:16:52 +00:00
the_fiddler f1e0f2c8de * Platform/X11/X11GLNative.cs: Removed stale comments and unused code. 2009-03-20 23:15:16 +00:00
the_fiddler b61c108a52 * Platform/X11/Bindings/Glx.cs: Added glXIsDirect method and made all enums private. Added ErrorCodes enum. 2009-03-20 23:13:24 +00:00
the_fiddler 6bd0a26e19 * Platform/X11/X11GraphicsMode.cs: Major clean up. Refactored
ChooseFBConfig and ChooseVisual codepaths into different methods.
  Fixed bug [#728].
2009-03-20 19:38:52 +00:00
the_fiddler fc0ca5631f Relaxed checks to allow input devices that do not contain any axes and/or buttons (e.g. tablets or keyboard extensions). 2009-03-08 20:03:33 +00:00
the_fiddler 4e5d758fa1 Added new GLControl constructors that allow you specify the desired GraphicsContext (OpenGL) version and flags. 2009-03-07 11:03:41 +00:00
the_fiddler d43123f219 Added new GameWindow constructors that specify the desired GraphicsContext (OpenGL) version and flags. 2009-03-07 10:49:32 +00:00
the_fiddler a0e0613420 Added the capability to specify the desired OpenGL version and parameters (debug / forward-compatible context).
Added OpenGL 3.0 support for GLX contexts.
Added support for creating dummy contexts (useful if you are creating contexts from an external library).
Cleaned up unused and stale code.
2009-03-07 10:36:51 +00:00
the_fiddler 8f594646b8 Made extension loading more forgiving (delegates can be either public or non-public now). 2009-03-07 10:20:55 +00:00
the_fiddler d2376ced1f Use Glx.ChooseFBConfig instead of the deprecated Glx.ChooseVisual, if the first is available. This is necessary for OpenGL 3.0 contexts. 2009-03-07 07:16:46 +00:00
the_fiddler 130d72dcf3 Removed unused types. 2009-03-07 07:14:52 +00:00
the_fiddler d7e387f548 Added support for the glx functions ChooseFBConfig, GetVisualFromFBConfig and CreateContextAttribsARB. 2009-03-07 07:13:48 +00:00
the_fiddler b958f912a8 WinMM devices with 0 axes and no POV hats are not joysticks/joypads. 2009-03-07 05:55:33 +00:00
kanato ebc3490243 Add MacOS code to call gestalt to detect OS version. 2009-03-02 01:49:23 +00:00
the_fiddler 5f2a4b3d8c * X11/X11Joystick.cs: Flip vertical axes so that +1 points up.
* Windows/WinMMJoystick.cs: Move Z-axis before R-axis.
2009-03-01 09:17:19 +00:00
the_fiddler 3360df3af9 Added support for POV hats with WinMM.
Reversed vertical axes, so that down is -1 and up is +1.
2009-03-01 08:44:39 +00:00
the_fiddler 912b04f333 Add description to joysticks opened from the legacy path. 2009-03-01 01:26:04 +00:00
the_fiddler f6f196c90b Added JoystickAxis and JoystickButton enumerations, as well as their respective collections.
Implemented necessary Poll() functions.
2009-03-01 01:17:24 +00:00
the_fiddler 9b43e11ff5 Initial joystick support (not public yet). 2009-02-28 23:11:27 +00:00
the_fiddler 529702a317 Merged initial GL3 support from branches/gl3. 2009-02-28 19:56:08 +00:00
the_fiddler cee4a44e76 Added support for wglCreateContextAttribsARB. 2009-02-28 19:51:58 +00:00
the_fiddler 8da8023c97 Suppressed a large amount of warnings for unused methods / fields in the platform bindings.
Replaced tab stops with spaces.
2009-02-22 12:10:36 +00:00
the_fiddler a22019d890 Normalize line endings and set the mime-type=text/plain and eol-style=native properties on all files. 2009-02-22 10:43:35 +00:00
kanato 81e09a2066 Merged in macos branch for Mac OS X support. 2009-02-20 18:57:57 +00:00
the_fiddler ab852cae58 Fixed SetWindowPos function (IntPtr instead of int parameter).
Add NcCalcSizeOptions enum.
2009-02-13 21:45:50 +00:00
the_fiddler 7651a7a3bb Merged text branch and updated changelog. 2009-02-13 19:09:38 +00:00
the_fiddler 44240ad598 Make Mono use X11GdiPlusInternals regardless of platform. 2009-02-12 22:48:09 +00:00
kanato 231f83186a AGL Fullscreen: Try to create a full screen context first, failing that create a non-fullscreen context. 2009-02-11 08:03:46 +00:00
the_fiddler 3059d09795 Time should be IntPtr, not uint.
Fixed KeypadEnter detection (was mistakenly mapped to vanilla Enter key).
2009-02-09 15:33:32 +00:00
kanato b921bf95dd Move input event handling to application level for fullscreen support. 2009-02-05 04:38:37 +00:00
kanato dc6f0e6461 Added GetMouseEventLocation Carbon wrapper function. 2009-02-05 04:36:17 +00:00
kanato 4f4dd33c13 Fix up display capturing. 2009-02-05 04:35:15 +00:00
kanato 8cc99350de Minor refactoring and commenting in AglContext.cs. 2009-02-03 08:21:52 +00:00
kanato b6642764eb Fix loss of first frame with GLControl. 2009-02-03 08:14:55 +00:00
kanato 1a4a3238c2 Updates for full screen support in Mac OS X. 2009-02-03 07:45:58 +00:00
kanato 44f2ad77d0 Removed unnecessary debug statement. 2009-02-03 07:43:36 +00:00
kanato 74707ccdfd Updates to macos fullscreen.
Resolution switching is now accompanied by a call to CGDisplayCapture.
A secondary fullscreen context is created for going full screen.
2009-01-27 18:27:44 +00:00
kanato 34e283367d Corrected device handle passed to aglChoosePixelFormat. 2009-01-20 04:34:24 +00:00
kanato e6c736e7ec Removed fullscreen flag. 2009-01-19 07:05:45 +00:00
kanato 3bd150ebbd Removed fullscreen flag. 2009-01-19 07:05:17 +00:00
kanato 874896fd2f Fix number of devices in call to aglChoosePixelFormat. 2009-01-15 05:25:00 +00:00
kanato 083caef1c1 Mac OS updates:
Window State support (minimize and maximize) 
Preliminary full screen support.
Preliminary support for changing the screen resolution.
2009-01-14 19:52:15 +00:00
kanato 23f4858e2c Added debugging information for pixel formats. 2008-12-29 01:31:21 +00:00
kanato 14ea26c866 Fix KeyNotFoundException in EventHandler routine. 2008-12-28 18:19:07 +00:00
kanato 9b3f1dc8ee Set CarbonGLNative to correctly record mouse position. 2008-12-28 05:20:25 +00:00
kanato 8778d1fca9 Update Utilties.CreateWindowInfo code path to work on MacOS. 2008-12-11 05:32:06 +00:00
the_fiddler db54fa79b3 Removed call to Console.WriteLine when changing WindowState. 2008-12-09 21:26:48 +00:00
kanato d3001f8a26 Correct position of buffer rect to be within the GLControl. 2008-12-09 20:10:24 +00:00
kanato 11430665f3 First commit which includes support for drawing to a WinForms control. 2008-12-09 19:44:18 +00:00
the_fiddler 2ce6227e64 Moved DummyGLContext and DummyGLControl to the OpenTK/Platform/Dummy directory and namespace.
Fixed a regression where the GLControl would try to instantiate a normal context inside the VS designer, instead of a dummy one.
2008-12-09 10:09:03 +00:00
the_fiddler 057759177b Fixed build warnings. 2008-12-09 10:06:25 +00:00