Commit graph

2248 commits

Author SHA1 Message Date
the_fiddler 67fed8705f 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 e2b3bda885 Return proper CarbonWindowInfo instance instead of DummyWindowInfo. 2009-11-06 15:33:53 +00:00
the_fiddler 92e2104c9d * Rectangle.cs: Fixed ToString formatting code. 2009-11-06 10:04:32 +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 2f3481231b * 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 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 e131297e7f Removed System.Drawing dependency from QuickStart. 2009-11-04 21:22:41 +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 75843147b8 Cleaned up deprecated methods. 2009-11-04 20:48:31 +00:00
the_fiddler fa81d3daa8 Cleaned up a large number of documentation issues. 2009-11-04 20:48:02 +00:00
the_fiddler ac0930d109 Updated deprecation message with specific instructions on how to solve the issue. 2009-11-04 20:47:06 +00:00
the_fiddler b353b62115 Added helper overloads for OpenTK.Point/Rectangle structures. 2009-11-04 19:24:21 +00:00
the_fiddler 078adc4b83 Enabled System.Drawing.Point/Size/Rectangle replacements. 2009-11-04 19:10:32 +00:00
the_fiddler 2cec4c1696 Refactored timer installation/removal into their own methods. 2009-11-04 18:35:32 +00:00
the_fiddler c2d92f5aca Added simpler constructor overload for external GraphicsContexts. 2009-11-04 17:18:32 +00:00
the_fiddler 839406aec4 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 30afae50c6 Deprecated the LoadAll() method in favor of the new GraphicsContext constructors. 2009-11-04 17:03:59 +00:00
the_fiddler c3aba0d21e Added missing base.On* calls. 2009-11-04 17:01:44 +00:00
the_fiddler 7f57d75570 Support external EGL contexts. 2009-11-04 17:00:52 +00:00
the_fiddler cc8ac7df14 Added missing documentation to GraphicsContext constructor. 2009-11-04 17:00:34 +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 b3c66b852d Set window title and icon. 2009-11-04 11:47:58 +00:00
the_fiddler f0fb55b864 Doubled the size of particles and made them slightly faster. 2009-11-04 10:47:20 +00:00
the_fiddler 11b68be5d0 Cleaned up sample, added color and motion. 2009-11-04 10:44: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 907d2bd7e9 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 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 6452cf4629 Now recognizes Resources folder for Examples project.
Added icon to Examples project.
2009-11-04 01:20:13 +00:00
the_fiddler 7bf742575e Added default icon to samples and the example browser. 2009-11-04 01:19:35 +00:00
the_fiddler e60df8ba28 Added default application icon. 2009-11-04 00:57:14 +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 043e0fec2f Fixed race condition in GraphicsMode.Default. 2009-11-03 13:16:59 +00:00
the_fiddler 92c5cbfaf2 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 1af4990517 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 70140e62ef Implemented Tranform(Vector, Quaternion) overloads. Fixes issue [#1028]: "[Math] Add vector transformation by quaternion". 2009-11-03 12:20:21 +00:00
the_fiddler d7a85401da 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 9ce7437cbd 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 3d6d476d16 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 26b969b23e 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 a333532d69 Added type-safe parameters to FramebufferTexture (fixes issue [#1303]: "[GL] fix FramebufferTexture parameters"). 2009-11-03 10:22:50 +00:00
the_fiddler a313386ee2 Added multithreading test to verify GameWindow behavior with multiple threads. 2009-11-03 09:58:39 +00:00
the_fiddler 3e5f1fb994 * 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 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