the_fiddler
6471772777
Added support for fractional mouse wheel values. Fixes issue [ #1279 ]: "Mouse wheel does not seem to work".
2009-11-16 12:15:35 +00:00
the_fiddler
a8c0c7adf4
Preserve the sign of the mouse position. Fixes issue [ #1376 ]: "mouse position".
2009-11-16 10:38:49 +00:00
kanato
1bc11bb807
MacOS: Fix crash in CheckEnterLeaveEvents if using WinForms too.
2009-11-15 22:00:14 +00:00
kanato
69c05cdb20
MacOS: Correct resizing behavior and correctly implement Bounds, ClientRectangle, and ClientSize getters and setters.
2009-11-15 19:31:23 +00:00
kanato
d695bb599c
MacOS: Add proper icon support for the dock.
2009-11-15 18:08:49 +00:00
kanato
63b314c4a8
MacOS: Implement Focused property and FocusChanged event.
2009-11-15 04:12:37 +00:00
kanato
103190ebf4
MacOS: Implement mouse enter / leave events.
2009-11-15 03:55:29 +00:00
kanato
52e89c13b1
MacOS: Clean up AglContext destruction code.
...
Implement INativeWindow.Close method.
2009-11-14 21:33:07 +00:00
kanato
ed05d8e12c
MacOS: Several minor fixes:
...
* Implement MouseWheel event
* Implement KeyPress event
* Fix generation of MouseMove events
* Fix right mouse button up event
2009-11-14 18:40:56 +00:00
kanato
6979e24254
MacOS: Fix bug where application started from the command line would not be in the foreground and not respond to keyboard events.
2009-11-14 00:30:57 +00:00
the_fiddler
fe01e67d39
Do not hook ProcessExit event if an X server is not available. Should fix issue [ #1364 ]: 1.0 beta-1 throws TypeInitializationException in OpenTK.Platform.X11.API when running on windows.
...
Cleaned up stale comments and code.
2009-11-12 15:41:41 +00:00
the_fiddler
2870532c78
Branched for 1.0 release.
2009-11-09 20:14:14 +00:00
kanato
d7506f0a73
MacOS: Hack for AGL to have access to the display device specified when a NativeWindow is created.
2009-11-09 07:50:21 +00:00
kanato
049d339643
MacOS: Detect display boundaries so created windows are placed in the right spot.
2009-11-09 07:39:38 +00:00
kanato
dad798d41d
MacOS: Fix event from user clicking close box to properly report that window doesn't exist anymore.
2009-11-09 07:18:54 +00:00
the_fiddler
c494250c3c
Disabled OpenTK.Point, Size and Rectangle structures that were meant to replace their System.Drawing implementations until the correct course of action can be determined. This change is too disruptive to existing applications, especially if they are also using Windows.Forms (see discussion here: http://www.opentk.com/node/1348 ).
2009-11-08 23:02:53 +00:00
the_fiddler
eedbe9df31
Don't display window by default, unless "Visible = true" is called. Allows the creation of invisible windows for secondary GraphicsContexts.
2009-11-08 22:46:49 +00:00
the_fiddler
a0e95055e3
Added a second terminating 0 to attribute list, trying to work around issue [ #1352 ]: "Occasional AccessViolationExceptions when creating the GLControl".
2009-11-08 22:42:20 +00:00
the_fiddler
874401ce0b
Use SHOW command instead of SHOWNORMAL when making a window visible, since SHOWNORMAL will un-maximize a fullscreen or maximized window.
...
Do not force an invisible window to become visible when modifying its state or borders.
2009-11-07 10:44:31 +00:00
the_fiddler
29dd5dfe68
Update the context when the native window is resized.
2009-11-06 21:56:35 +00:00
the_fiddler
4278538317
MacOS can have an X server installed. Modified the code so that it prefers the native Carbon/Quartz platform driver over X in this case.
2009-11-06 17:58:35 +00:00
the_fiddler
139b6af9fa
* Platform/Windows/WinDisplayDevice.cs:
...
* Platform/MacOS/QuartzDisplayDeviceDriver.cs: Updated to use the new
DisplayDevice constructors.
* Platform/X11/X11XrandrDisplayDevice.cs: Query Xinerama for the exact
bounds of each display device, if available.
Use global X lock to protect from multithreaded access.
2009-11-06 09:50:50 +00:00
the_fiddler
e6aeff7d35
* X11GLNative.cs: Convert from ASCII to the default encoding before generating KeyPress events (allows support for simple scripts that do not use composition.)
2009-11-05 12:12:29 +00:00
the_fiddler
5127316431
* X11GLNative.cs: Implemented KeyPress event (no support for input
...
methods yet).
* Functions.cs: Added XLookupString and XRefreshKeyboardMapping
methods for simple ANSI text input.
2009-11-05 11:49:24 +00:00
the_fiddler
4af10e6c68
Added missing TitleChanged event.
2009-11-04 20:49:38 +00:00
the_fiddler
03512805c8
Removed unused code.
2009-11-04 20:48:35 +00:00
the_fiddler
2cec4c1696
Refactored timer installation/removal into their own methods.
2009-11-04 18:35:32 +00:00
the_fiddler
7f57d75570
Support external EGL contexts.
2009-11-04 17:00:52 +00:00
the_fiddler
2d4b962d2c
Renamed internal BindingsBase.LoadAll/Load methods to LoadEntryPoints/LoadEntryPoint, in order to avoid name clashes with the static GL.LoadAll() method.
...
Added GraphicsContext() constructor that takes an existing, valid OpenGL context. This can be used for interop with third-party toolkits which create the OpenGL context themselves.
2009-11-04 16:49:56 +00:00
the_fiddler
11dc8fc4cd
Initialize threads before calling any other X methods.
2009-11-04 10:04:16 +00:00
the_fiddler
e5469f38d1
Removed unnecessary debugging messages from main loop.
2009-11-04 10:03:50 +00:00
the_fiddler
331b7d0f63
Default window style flags can be constants rather than static readonly fields.
...
Throw an exception if we fail to register the window class, the previous solution (check for "class already exists" error) was a workaround for a threading issue that has been solved.
Set the small icon when registering the class.
2009-11-04 09:21:41 +00:00
the_fiddler
eec0033297
Fixed ClassName and ModalLoopTimerId when constructing multiple WinGLNative windows in parallel.
...
WinGLNative windows are now correctly focused when clicked on the client area.
2009-11-03 23:42:06 +00:00
the_fiddler
2ba3e5357e
Serialize context construction to avoid threading issues with shared contexts.
2009-11-03 23:39:03 +00:00
the_fiddler
40940d1430
Avoid static caching of extension strings and improve multithreading behavior - WGL extension checking is fast enough that caching is not very useful.
2009-11-03 23:36:37 +00:00
the_fiddler
ddb56a1952
Added SyncRoot object to BindingsBase that can be used to protect shared state in the various bindings.
2009-11-03 23:26:57 +00:00
the_fiddler
974641086c
Use more aggressive xlib locking following the advice of the multithreaded X manpages (needs work).
2009-11-02 22:37:13 +00:00
the_fiddler
2a1924c62c
Do not allow MakeCurrent() to change the display connection of the context. This would result in an X error and the change allows us to simplify shutdown/cleanup logic.
2009-11-02 20:50:16 +00:00
the_fiddler
ea1765ec75
Added experimental Icon and IconConverter implementations from Mono.
...
Modified INativeWindow implementations to not qualify Icon class fully, so we can change the implementation between System.Drawing and OpenTK at will (using the EXPERIMENTAL #define).
2009-11-02 09:33:53 +00:00
the_fiddler
2340e87eda
Added experimental OpenTK.Point/Size/Rectangle alternatives to System.Drawing, to make OpenTK usable without referencing System.Drawing (disabled by default, #define EXPERIMENTAL to test). Modified a number of using directives and namespace qualifiers to accommodate this change.
2009-11-01 12:44:38 +00:00
the_fiddler
a7eb81a68c
Implemented INativeWindow.MouseEnter/MouseLeave events on Win32 and X11.
2009-10-27 23:57:44 +00:00
the_fiddler
ea4b599d0e
Set default class cursor to avoid invalid cursors when entering the window.
2009-10-21 20:08:04 +00:00
the_fiddler
7b8ba2eacb
Added LoadCursor method.
...
Added CursorName enum (only default arrow cursor is defined for now).
2009-10-21 20:07:32 +00:00
the_fiddler
b92198bccc
Avoid accessing OpenTK.Graphics.OpenGL from platform-specific code. Reduces coupling and code-duplication.
2009-10-21 10:16:32 +00:00
the_fiddler
7ae6858ab5
Trap WM_SYSCHAR to avoid generating system beeps on Alt+[Key] combinations.
2009-10-20 11:35:35 +00:00
the_fiddler
c80cac88ca
Revert WindowBorder and WindowState value changes.
...
Use Nullable types to detect when WindowBorder and WindowState is not set.
2009-10-19 21:32:33 +00:00
the_fiddler
65e9d6d969
* X11GLNative.cs: Added more defensive checks for the existence of the window before issuing XDestroyWindow.
...
Do not allow multiple calls to XDestroyWindow once the shutdown sequence has been initialized. Fixes issue [#1190 ]: "GameWindow dispose on linux".
2009-10-19 19:46:37 +00:00
the_fiddler
de37859604
* X11GLNative.cs: Correctly set all necessary ClientMessage fields
...
for XSendEvent call in Close() method.
2009-10-19 19:03:17 +00:00
the_fiddler
4743a9e810
* Functions.cs: Added helper function for XSendEvent, so that we
...
don't need to cast the EventMask to IntPtr.
2009-10-19 19:02:07 +00:00
the_fiddler
5ba821a09a
* X11GLContext.cs: Correctly set GraphicsMode in constructor (resolves issue [ #1175 ]: "Graphics] GraphicsContext.GraphicsMode property returns null on Linux").
2009-10-19 18:11:32 +00:00