the_fiddler
58b4f5c18f
Do not print window title to debug stream inside the set_Title property. Instead, log an error only when the method call fails. Fixes issue [ #1239 ]: "Debug.Print in Title property".
2009-10-17 22:02:08 +00:00
the_fiddler
cb1c73e827
Added LoadIcon method.
...
Made SHFILEINFO non-public.
Modified WinGLNative.cs to use Icon.ExctractAssociatedIcon() to set the application icon (needs work).
2009-10-14 22:48:19 +00:00
the_fiddler
a8231a5eb4
Added support for setting the application (use SHGetFileInfo to retrieve the correct icon and set it when constructing a new window).
2009-10-14 21:50:40 +00:00
the_fiddler
6ffe87813a
Restore previous window size when leaving fullscreen mode.
2009-10-14 19:46:39 +00:00
the_fiddler
26ec28963e
Workaround for modal loop blocking in ENTERMENULOOP event.
2009-10-12 13:15:12 +00:00
the_fiddler
01a8748416
Post a close message instead of destroying the window outright, when the user calls the Close() method. Ensures that the user can stop the exit sequence through the IsClosing event.
2009-10-07 16:18:48 +00:00
the_fiddler
64c6148f53
Generate Update/ResizeFrame events whenever the window is moved or resized. Partially fix for issue [ #1218 ]: "[NativeWindow] Avoid modal loop during window resize/movement".
2009-10-07 15:18:53 +00:00
the_fiddler
05158536cf
Added timer callback to WM_ENTERSIZEMOVE messages to avoid stalling the rendering during the modal size/move loop (which occurs when the user clicks the window bar or borders). Still need to find a way to notify the frontend (GameWindow) to process queued up UpdateFrame/RenderFrame events.
2009-10-07 13:07:36 +00:00
the_fiddler
bee2c0808a
Raise KeyPress events (handle WindowsMessage.CHAR message).
2009-09-26 21:56:42 +00:00
the_fiddler
045453fbf2
Renamed IsWindowVisisble to the correct IsWindowVisible.
2009-09-19 20:30:12 +00:00
the_fiddler
abcad58092
Removed obsolete comment.
2009-09-08 16:55:41 +00:00
the_fiddler
6a9317bf07
Construct windows invisible by default. Use 'Visible = true' or 'GameWindow.Run' to display them.
2009-09-08 13:04:22 +00:00
the_fiddler
5e80a061b8
Implemented INativeWindow.WindowBorderChanged and INativeWindow.WindowStateChanged events.
2009-08-17 09:34:15 +00:00
the_fiddler
4847646cc8
Added INativeWindow.CreateKeyboardDriver()
...
Added INativeWindow.KeyPress event (KeyPressEventArgs).
Removed INativeWindow.Icon property.
2009-07-19 17:49:51 +00:00
the_fiddler
8c800d619d
Removed obsolete code.
...
Implemented X11GLNative.IconChanged event.
2009-06-24 14:42:40 +00:00
the_fiddler
cb661c2dca
Merged gw-next2 branch to trunk.
2009-06-02 15:49:39 +00:00
the_fiddler
2f54b29ed8
Added initial support for GameWindow.PointToClient.
2009-05-07 19:48:22 +00:00
the_fiddler
d43123f219
Added new GameWindow constructors that specify the desired GraphicsContext (OpenGL) version and flags.
2009-03-07 10:49:32 +00:00
the_fiddler
a22019d890
Normalize line endings and set the mime-type=text/plain and eol-style=native properties on all files.
2009-02-22 10:43:35 +00:00
the_fiddler
ab852cae58
Fixed SetWindowPos function (IntPtr instead of int parameter).
...
Add NcCalcSizeOptions enum.
2009-02-13 21:45:50 +00:00
the_fiddler
db54fa79b3
Removed call to Console.WriteLine when changing WindowState.
2008-12-09 21:26:48 +00:00
the_fiddler
057759177b
Fixed build warnings.
2008-12-09 10:06:25 +00:00
the_fiddler
a2335092c9
Added a work around for the "stuck cursor" issue, where the mouse cursor would stay at the resize state when entering the GameWindow.
2008-05-04 19:09:18 +00:00
the_fiddler
8905630f12
Normalized line endings.
2008-05-03 16:34:39 +00:00
the_fiddler
a4908fd011
Minor stylistic change (word wrap at 120 characters).
2008-04-25 21:02:54 +00:00
the_fiddler
aba6cdadef
Completed implementation of WindowBorder and WindowState properties.
2008-04-21 20:18:39 +00:00
the_fiddler
a264b8406c
Completed WindowBorder and WindowState implementation.
2008-04-21 18:36:16 +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
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
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
a9e2ce4a00
Completed move of OpenTK.OpenGL to OpenTK.Graphics.OpenGL.
2008-02-02 00:58:26 +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
9623d405c3
Fixed fullscreen mode size.
2008-01-27 15:59:43 +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
5b44be105c
Don't use obsolete DisplayMode.Width/Height anymore.
2008-01-23 13:26:14 +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
762ea8f1bb
Set window on top during creation.
2008-01-15 00:02:58 +00:00
the_fiddler
42c205db00
Fixed a GameWindow exit bug, where the GameWindow didn't send the destroy message on GameWindow.Exit().
2008-01-14 23:43:56 +00:00
the_fiddler
589e6ad813
Now uses GLContext directly, instead of WinGLContext.
2008-01-11 20:24:20 +00:00
the_fiddler
2f4afe34f5
Added PointToClient and PointToScreen functions. Changed default input driver implementation from RawInput to WMInput due to invalid RawInput data.
2008-01-06 02:25:56 +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
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