Commit graph

82 commits

Author SHA1 Message Date
the_fiddler 9f3444a840 Remove GameWindow.Visible property (is there a use case for this, or is it just feature creep?) 2008-05-04 16:34:38 +00:00
the_fiddler 7010395b96 Expose the WindowBorder property. 2008-04-21 20:29:40 +00:00
the_fiddler 35b58ffda7 Added WindowState and WindowBorder support on Windows. Removed GameWindow.Fullscreen property. Removed some chunks of unused code. 2008-04-20 17:54:16 +00:00
the_fiddler a567f6604f Added stub for WindowState. 2008-04-13 21:32:04 +00:00
the_fiddler 19b1d1a424 2008-04-13 18:44:23 +00:00
the_fiddler 63608b1dd7 Updates to GameWindow shutdown and X11 locking behavior. 2008-03-26 19:43:57 +00:00
the_fiddler ef16998dca Use one display connection for all X11 communication. Seems to fix (not 100%) the crash problems encountered. 2008-03-24 13:12:02 +00:00
the_fiddler 7751c07e6f Moved OpenTK.Fonts to from OpenTK OpenTK.Utilities.
Added OpenTK.Utilities.dll reference to Examples.
Moved assembly-level attributes from GameWindow.cs to Configuration.cs.
2008-03-08 14:06:59 +00:00
the_fiddler 37c40f16eb Renamed ColorDepth to ColorFormat, to avoid class with System.Drawing.ColorDepth.
Update X11 stack to use System.Windows.Forms.XPlatUI for its Display, Screen and RootWindow.
Fixed mode setting for X11GLControl.
Fixed X11 shutdown (was generating X11 errors).
Added DeviceContext getter to WinWindowInfo.
Made IWindowInfo disposable.
Added documentation to many public methods.
Worked around a Mono 1.2.4 bug with Handle creation on Windows.Forms.Control.
Updated GL.BuildExtensionList to correctly parse GL_VERSION when in indirect rendering mode.
Fixed crash errors in X11GLContext.CreateContext and X11GraphicsMode.
Added a ref overload to Glx.ChooseVisual()
IGraphicsContext.MakeCurrent now takes an IWindowInfo parameter. This allows the user to change to window is context is bound to (untested).
Renamed XyzWindowInfo.Handle to XyzWindowInfo.WindowHandle.
2008-03-03 12:44:56 +00:00
the_fiddler e10d37418f Major update: fixed context construction on X11.
Fixed vsync on X11.
Updated GraphicsContext interface, for better extensibility. Some public functions were moved to IGraphicsContextInternal.
Renamed DisplayDevice.PrimaryDisplay to DisplayDevice.Default.
Updated and documented new GameWindow constructors.
Improved GameWindow.Exit, added GameWindow.ExitAsync() and improved error handling.
Improved GraphicsContext and NativeGLWindow APIs (construction in constructor).
Made ContextHandle public.
2008-03-01 13:15:31 +00:00
the_fiddler 1d3c358512 Renamed GraphicsFormat to GraphicsMode. 2008-02-28 15:28:40 +00:00
the_fiddler ee1431279f Renamed GraphicsFormat to GraphicsMode. 2008-02-28 15:26:13 +00:00
the_fiddler 83afd98314 Updated to use new IWindowInfo interface.
Updated to use GraphicsFormat instead of DisplayMode.
Updated to use ColorDepth instead of ColorMode.
Improved GameWindow Exit handling, and handling of failed context creation.
Improved WinGLContext creation code, to allow for FSAA support in the future.
Fixed several shutdown bugs in WinGLContext and GraphicsContext.
Context creation no longer relies on IGLContextCreationHack.
X11GLContext is not working at the moment.
2008-02-28 13:57:07 +00:00
the_fiddler 3ee626a08f Fixed a few warnings.
Added [assembly: CLSCompliant(true)] attribute to GameWindow.cs
2008-02-02 13:39:23 +00:00
the_fiddler a9e2ce4a00 Completed move of OpenTK.OpenGL to OpenTK.Graphics.OpenGL. 2008-02-02 00:58:26 +00:00
the_fiddler 6fc6719019 Fixed crash on resize. 2008-02-01 18:04:29 +00:00
the_fiddler d87e79268f Moved and renamed OpenTK.GLContext to OpenTK.Graphics.GraphicsContext. 2008-01-31 14:39:54 +00:00
the_fiddler 019cf966e3 Renamed IGLContext to IGraphicsContext. 2008-01-31 13:17:42 +00:00
the_fiddler 56cbbb8cbb Added setter to GLContext.CurrentContext and all implementations, so that the user can clear the context of any thread.
Updated GameWindow and its implementations to use GraphicsFormat instead of the obsolete DisplayMode.
Updated license.
Updated some docs.
Fixed CLSCopmliant warnings in XRamExtension.cs
2008-01-31 13:15:17 +00:00
the_fiddler c6d9dd5df3 Added fadeout and fadein effect. 2008-01-26 14:02:58 +00:00
the_fiddler 3a026d5d5e Fullscreen mode changes now work! 2008-01-24 12:36:40 +00:00
the_fiddler 1a100aaff3 Updated everything to use plain (int width, int height parameters) instead of DisplayMode.Width/.Height. 2008-01-23 14:17:09 +00:00
the_fiddler 40f32f4867 Documentation updates. Getting rid of all remaining warnings in debug build. 2008-01-20 19:29:42 +00:00
the_fiddler d8620652b5 Re-added input polling. 2008-01-15 13:01:55 +00:00
the_fiddler 89122b9128 Temporarily disabled GameWindowExitException. 2008-01-15 12:08:09 +00:00
the_fiddler 370617f58a Debugging GameWindow.Exit() sequence on Mono. 2008-01-15 11:23:34 +00:00
the_fiddler 50f6bd2807 Changed the INativeGLWindow.CreateWindow interface to return an IGLContext instead of a GLContext. 2008-01-15 10:48:48 +00:00
the_fiddler 33d0193e7f Refactored context creation to be done inside the *GLNative classes, instead of the GameWindow class. Should refactor in the next version. 2008-01-15 10:31:03 +00:00
the_fiddler 828fa2ebc2 Fixed window destruction. 2008-01-15 00:10:56 +00:00
the_fiddler 876b5139ef Fixed GLContext creation on Windows. 2008-01-14 22:38:09 +00:00
the_fiddler d8eedf31b6 Solved context creation on windows. 2008-01-11 20:37:09 +00:00
the_fiddler 6952638538 GameWindow.Exit() now works when called from a different thread. 2008-01-06 02:29:54 +00:00
the_fiddler 107951c4d1 Hooks for garbage-collectable OpenGL resources.
the [...]GLNative classes now use GLContext instead of the platform-specific [...]GLContext implementations.
Updated the IGLContext interface with functions to query the current context.
2007-12-09 18:15:51 +00:00
the_fiddler 00e6091243 Added instructions on how to disable warning on OpenTK.GameWindowExitException when running under the Visual Studio debug process. 2007-11-12 19:21:45 +00:00
the_fiddler 6904d0a23c Some comments. 2007-11-12 07:45:34 +00:00
the_fiddler 3df8c77cab Added a call to StopWatch.Reset() to avoid starting the timers before their time. 2007-11-11 23:32:58 +00:00
the_fiddler a1fb128a70 Fixed shutdown sequence in Windows, so that GameWindow.Exit() and pressing the 'close' button behave the same. 2007-11-11 20:23:25 +00:00
the_fiddler 0590fa91ca Fixed shutdown sequence on Linux. GameWindow.Exit() and clicking the 'close' button now produce the same result. 2007-11-11 20:10:08 +00:00
the_fiddler 75448310ef Use GameWindowExitException to exit GameWindow now. No need for the GameWindow.Exit(); return; idiom any more. 2007-11-11 19:28:13 +00:00
the_fiddler 57a1277aa9 Reverted to 0.3.12 way of handling input events. 2007-11-10 18:26:05 +00:00
the_fiddler 2cb2bef32f Enabled VSyncing by default. 2007-11-08 15:57:10 +00:00
the_fiddler ffadaeb024 Corrected some warnings. 2007-11-06 13:37:19 +00:00
the_fiddler 484cf71cb0 Updated to work with the new bindings. 2007-11-04 15:41:10 +00:00
the_fiddler bba6bda879 Split up lines that were longer than 100 characters. 2007-11-01 23:28:31 +00:00
the_fiddler 210122454c Cleaned up warnings. Updated documentation. Cleaned up some functions. 2007-10-26 15:54:35 +00:00
the_fiddler 11015a9fc7 GameWindow.Exit() now throws an exception that is caught inside GameWindow.Run() to signal end of execution. Simplifies code and removes some ugly conditionals. 2007-10-20 14:22:39 +00:00
the_fiddler 2968ab9842 The Resize event is now fired before the Load event. 2007-10-20 10:28:02 +00:00
the_fiddler 35d903bcf2 GameWindow constructor now creates a window. Made CreateWindow private. Added InputDriver. 2007-10-19 20:03:53 +00:00
the_fiddler 10f89bcd9c Major update! Updated timing routines. Added documentation. Added VSync property. 2007-10-15 11:12:56 +00:00
the_fiddler fa395a5325 Big update: added timing information. Improved update and render frequency limiting algorithms (they extremely accurate now!) Added VSync property and VSyncMode enum. Adaptive VSync not available yet. 2007-09-30 12:44:42 +00:00