Commit graph

2176 commits

Author SHA1 Message Date
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 3129b359a9 Removed System.Drawing dependency from QuickStart. 2009-11-04 21:22:41 +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 c0789ffa6e Cleaned up deprecated methods. 2009-11-04 20:48:31 +00:00
the_fiddler c09c21dc64 Cleaned up a large number of documentation issues. 2009-11-04 20:48:02 +00:00
the_fiddler 3e1e9dfdca Updated deprecation message with specific instructions on how to solve the issue. 2009-11-04 20:47:06 +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 2073a8805c Added missing base.On* calls. 2009-11-04 17:01:44 +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 8ce46fafde Set window title and icon. 2009-11-04 11:47:58 +00:00
the_fiddler 507a890ceb Doubled the size of particles and made them slightly faster. 2009-11-04 10:47:20 +00:00
the_fiddler 74657d94f8 Cleaned up sample, added color and motion. 2009-11-04 10:44: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 5d303f6257 Now recognizes Resources folder for Examples project.
Added icon to Examples project.
2009-11-04 01:20:13 +00:00
the_fiddler f58fe867e8 Added default icon to samples and the example browser. 2009-11-04 01:19:35 +00:00
the_fiddler 72045f4901 Added default application icon. 2009-11-04 00:57:14 +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 baf44cff90 No need to burn 100% CPU time just for a spinning cube! (Especially important for the multithreading test, which opens multiple such windows). 2009-11-03 13:03:35 +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
the_fiddler d757b00e0a Added missing TextureBuffer token to BufferTarget and TextureTarget enums (promoted from ARB_texture_buffer_object). Fixes issue [#1313]: "TextureBuffer target". 2009-11-03 10:33:24 +00:00
the_fiddler dc572d7a6f Added type-safe parameters to FramebufferTexture (fixes issue [#1303]: "[GL] fix FramebufferTexture parameters"). 2009-11-03 10:22:50 +00:00
the_fiddler c2a40d0b66 Added multithreading test to verify GameWindow behavior with multiple threads. 2009-11-03 09:58:39 +00:00
the_fiddler 00d966641b * DocProcessor.cs: Remove any trailing newlines in XML docs. Output
between Mono/Linux and .Net/Windows is now consistent.
2009-11-03 08:48:49 +00:00
the_fiddler 74bae3e196 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 0bfb7897b0 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 1073c8ccac * Matrix4d.cs: M44 should be 1.0 to conform with GL.Ortho(). Fixes issue [#1307]: "GL.Ortho behaves other than combination of OpenTK.Matrix4d.CreateOrthographic and GL.MultMatrix". 2009-11-02 13:25:41 +00:00
the_fiddler 9d8cf134c1 Qualify System.Drawing.Rectangle/Point/Size structs fully when necessary, to avoid namespace clash with OpenTK.Rectangle/Point/Size. 2009-11-02 09:37:18 +00:00
the_fiddler c8c652131e 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