the_fiddler
2ce4a6ecfd
Merged changes from 1.0 branch.
2009-11-10 00:04:11 +00:00
the_fiddler
089b72c9c8
Protect all Xlib calls with XLockDisplay/XUnlockDisplay. Fixes issue [ #1354 ]: "Application always run in windowed mode when using shared contexts".
2009-11-09 19:05:41 +00:00
the_fiddler
8af490627f
Fixed a large number of recurring spelling mistakes in documentation (patch by iRBiS). Fixes issue [ #1341 ]: "Vector4 constructor describes w component as z component + other spelling corrections".
2009-11-09 08:15:38 +00:00
the_fiddler
aedb514b84
Fixed documentation which describes w components as z components (patch by iRBiS).
2009-11-09 08:12:34 +00:00
kanato
62b65af462
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
56412367c4
MacOS: Detect display boundaries so created windows are placed in the right spot.
2009-11-09 07:39:38 +00:00
kanato
c605a05ffb
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
kanato
017c9e86d0
Mac OS X Fix for GameWindow to call glContext.Update when resized
2009-11-09 06:51:52 +00:00
the_fiddler
e35f9d5374
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
0af0916ce0
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
e1485cdfca
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
756cf4aaed
Added system-defined colors.
...
Added and improved constructors (more versatile).
Added ToArgb() method for improved System.Drawing.Color interop.
2009-11-07 19:38:40 +00:00
the_fiddler
1cd2b8d076
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
dafcfd6f38
Always set the DisplayDevice.Bounds to a correct value. Fixes issue [ #1339 ]: "DisplayDevice.Bounds not set".
2009-11-07 10:42:25 +00:00
the_fiddler
38a8efb649
Do not check for an X server if we detect Mac OS X. Should solve issue [ #1338 ]: "Running apps in Mac OSX start a application called X11".
2009-11-07 10:10:53 +00:00
the_fiddler
2e418e5b6b
Update the context when the native window is resized.
2009-11-06 21:56:35 +00:00
the_fiddler
ab198f15e7
Correctly set the primary device in the DisplayDevice constructor.
2009-11-06 18:34:53 +00:00
the_fiddler
70eba0eb20
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
7c82f66942
Fixed spelling of hertz and fps. Fixes issue [ #1333 ]: "Spelling of SI units in documentation and captions". Patch by iRBiS.
2009-11-06 16:46:28 +00:00
the_fiddler
62fee03192
* Rectangle.cs: Fixed ToString formatting code.
2009-11-06 10:04:32 +00:00
the_fiddler
8733dd7c2f
* 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
2af357c106
* DisplayDevice.cs: Made DisplayDevice properties settable
...
internally (simplifies device detection code).
Bounds property is now independent of the default resolution.
* DisplayResolution.cs: Obsoleted the Bounds property, as this becomes
invalid as soon as the resolution of any display device is changed.
2009-11-06 09:49:06 +00:00
the_fiddler
39b4e329fd
* 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
3e1ce4dfa5
* 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
ada915fed0
Added missing TitleChanged event.
2009-11-04 20:49:38 +00:00
the_fiddler
3fd2b4b30b
Removed unused code.
2009-11-04 20:48:35 +00:00
the_fiddler
c09c21dc64
Cleaned up a large number of documentation issues.
2009-11-04 20:48:02 +00:00
the_fiddler
40235d84ca
Added helper overloads for OpenTK.Point/Rectangle structures.
2009-11-04 19:24:21 +00:00
the_fiddler
6770e171ed
Enabled System.Drawing.Point/Size/Rectangle replacements.
2009-11-04 19:10:32 +00:00
the_fiddler
b36e6c64d7
Refactored timer installation/removal into their own methods.
2009-11-04 18:35:32 +00:00
the_fiddler
bf8e2c695a
Added simpler constructor overload for external GraphicsContexts.
2009-11-04 17:18:32 +00:00
the_fiddler
e3781e0b91
Don't forget to load all bindings when constructing an external context - this constructor was added for precisely this reason, after all.
2009-11-04 17:14:57 +00:00
the_fiddler
38576a20f2
Deprecated the LoadAll() method in favor of the new GraphicsContext constructors.
2009-11-04 17:03:59 +00:00
the_fiddler
9f4eca541f
Support external EGL contexts.
2009-11-04 17:00:52 +00:00
the_fiddler
1f254a9f55
Added missing documentation to GraphicsContext constructor.
2009-11-04 17:00:34 +00:00
the_fiddler
5142354cda
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
3ca21ed1b6
Initialize threads before calling any other X methods.
2009-11-04 10:04:16 +00:00
the_fiddler
9f96fe71c1
Removed unnecessary debugging messages from main loop.
2009-11-04 10:03:50 +00:00
the_fiddler
f5de2fc8d3
Added Toolkit.Init() method that can be used to configure the underlying platform correctly when using OpenTK along with other toolkits (e.g. OpenTK+GTK# on X, where GTK# does not initialize threads).
2009-11-04 09:46:45 +00:00
the_fiddler
765f54917e
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
15ab0d3ea7
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
544cf9d405
Serialize context construction to avoid threading issues with shared contexts.
2009-11-03 23:39:03 +00:00
the_fiddler
7e1ebfea6b
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
bd3334dd2b
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
9b63078b11
Fixed race condition in GraphicsMode.Default.
2009-11-03 13:16:59 +00:00
the_fiddler
18109103e3
Use new string(sbyte*) instead of Marshal.PtrToStringAnsi to increase performance when calling GetString to retrieve the list of available extensions.
2009-11-03 12:59:25 +00:00
the_fiddler
eb92aa8223
Implemented Tranform(Vector, Quaternion) overloads. Fixes issue [ #1028 ]: "[Math] Add vector transformation by quaternion".
2009-11-03 12:20:21 +00:00
the_fiddler
b5eb7fdb93
Deprecated Mult in favor of Multiply.
...
Modified operator * to use Multiply internally (reduces code duplication).
2009-11-03 12:11:51 +00:00
the_fiddler
eeda1bf866
Fixed Vector3.Transform signature to return a Vector3, not a Vector4. It was previously impossible to transform a Vector3 structure without intermediate conversions to Vector4.
2009-11-03 11:45:20 +00:00
the_fiddler
4d3e84701c
Modified Transform(ref Vector4, ref Matrix4, out Vector4) overload to work correctly when the ref and out parameters point to the same Vector4.
...
Modified Transform(Vector4, Matrix4): Vector4 to call the reference overload internally. Faster and reduces code duplication.
2009-11-03 11:41:36 +00:00