Commit graph

13 commits

Author SHA1 Message Date
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
823149b343 Do not force control to create its handle in Resize event (the designer places code that raises this event before the rest of the events are hooked). Instead, suppress the event and raise it once the handle is actually created. 2009-10-22 17:56:55 +00:00
the_fiddler
a58fe9e70e * GLControlFactory.cs: More defensive checks for null GraphicsModes.
* GLControl.cs: More defensive checks for null GraphicsModes.
Set flags, context version and GraphicsMode before calling
  InitializeComponents(), as the latter might cause the context to be
  created (and we need this information before creating the context).
  Fixes ArgumentNullException on Linux.
2009-10-19 17:38:16 +00:00
the_fiddler
56610f5b20 Added workaround for the "Resize event called before GraphicsContext is ready" issue. 2009-10-15 14:52:57 +00:00
the_fiddler
8628ef580f Clarified GrabScreenshot() ObsoleteAttribute message. 2009-10-15 14:15:26 +00:00
the_fiddler
a122fcd239 Setting VSync mode should not force control creation. Fixes issue [#1071]: "Not firing Load event for GLControl." 2009-09-18 15:46:00 +00:00
the_fiddler
5f0e989951 * GLControl.cs: Added a public getter for the IWindowInfo of the GLControl. 2009-09-10 14:05:59 +00:00
the_fiddler
f6da09177e Fixed line endings and set svn:eol-style to native and svn:mime-type to text/plain for .cs files. 2009-09-03 19:01:11 +00:00
the_fiddler
34326b7b42 * Source/GLControl/GLControl.cs: Validate internal state when public
members are accessed (issue [#1141]: "Unhandled exception in
  GlControl possible bug in rev 2207"). Throw ObjectDisposedException
  if public members are accessed after the GLControl has been
  disposed. Force the create/recreation of the control if a public
  member is called and the control handle or context does not exist.
2009-09-03 12:26:42 +00:00
the_fiddler
9efa051ba3 Do not call IGraphicsContextInternal.LoadAll() in design-mode. The DummyGLContext would need extensive modifications to support the runtime checks performed by this call and the extra work is not worth it. 2009-09-02 22:56:46 +00:00
the_fiddler
ad714d3f4c * GLControl.cs: Removed call to CreateControl from the GLControl constructor. The GLControl is now constructed lazily, as regular UserControls do. Fixes issue [#1071]: "Not firing Load event for GLControl." 2009-09-02 12:06:41 +00:00
the_fiddler
7be5bc9648 * GLControl.cs: Delayed creation of IGLControl implementation until
the OnHandleCreated event.

* X11GLControl.cs: Removed unused Control field.
Added checks for null parameters.
2009-09-02 12:00:44 +00:00
the_fiddler
c6516c2255 Moved OpenTK.GLControl to its own project. 2009-08-19 14:17:47 +00:00
Renamed from Source/OpenTK/GLControl.cs (Browse further)