Commit graph

30 commits

Author SHA1 Message Date
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
kanato
8b65201145 Initial commit with Mac OS support. 2008-11-04 18:35:17 +00:00
the_fiddler
539370d4b7 Passing null to ChangeResolution will restore the original resolution. 2008-05-04 16:26:54 +00:00
the_fiddler
eaaf67d903 Modified the SelectResolution to never fail, even if the specified resolution is not supported. In this case, it will return the current resolution. 2008-05-04 16:25:00 +00:00
the_fiddler
d0aa219d11 Temporarily disabled full screen fade effect on resolution change. 2008-04-22 21:10:20 +00:00
the_fiddler
e1cfb32554 Fix line endings. 2008-04-20 11:14:10 +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
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
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
a785d45b9c Fixed error in X11 display. 2008-01-27 15:53:04 +00:00
the_fiddler
518dadb188 call Form.Update() on each fade effect step. 2008-01-27 14:29:15 +00:00
the_fiddler
3cd5a5b841 Fixed test. Restored fade-out/fade-in effects. 2008-01-26 14:38:35 +00:00
the_fiddler
20b3d6f308 Debugging on linux. 2008-01-26 14:35:28 +00:00
the_fiddler
c6d9dd5df3 Added fadeout and fadein effect. 2008-01-26 14:02:58 +00:00
the_fiddler
58ee3ea427 Set original_resolution to null after a successful call to RestoreResolution(). 2008-01-26 11:02:49 +00:00
the_fiddler
7f1309a796 Changed IDisplayDeviceDriver.RestoreResolution method to IDisplayDeviceDriver.TryRestoreResolution.
DisplayDevice now correctly reports original resolution.
2008-01-26 11:01:20 +00:00
the_fiddler
8fc02776aa Slightly improved debug string for each DisplayDevice. 2008-01-25 15:33:41 +00:00
the_fiddler
484832eff4 Removed a couple of debug messages. Now marks the current resolution among all available resolutions in debug mode. 2008-01-25 15:19:45 +00:00
the_fiddler
38840cf404 Debug information now reports primary device. 2008-01-25 15:04:00 +00:00
the_fiddler
d546132a5b Added some cool debugging information on available resolutions per device. 2008-01-25 14:32:09 +00:00
the_fiddler
f3c028e5d2 Lock in constructor for thread safety. 2008-01-25 10:20:25 +00:00
the_fiddler
6c0648a547 Create X11/X11XrandrDisplayDevice on X11 platforms. 2008-01-25 10:01:46 +00:00
the_fiddler
db0e269791 Added platform detecion. 2008-01-24 21:20:59 +00:00
the_fiddler
54224ed65c Refresh rate is now considered a match, if it is less than 1.0Hz away of the specified value. 2008-01-24 10:52:12 +00:00
the_fiddler
a4fe343d73 WinDisplayDevice is now multiple-monitor aware.
Added SelectResolution function to DisplayDevice.
Updated test to change settings on all available monitors.
2008-01-24 10:50:39 +00:00
the_fiddler
f6d47b72fb Added DisplayDevice, DisplayResolution, IDisplayDeviceDriver, GraphicsContextException and GraphicsModeException. 2008-01-24 09:13:50 +00:00
the_fiddler
4f8223265a Renamed Display to DisplayDevice. 2008-01-23 14:39:53 +00:00
Renamed from Source/OpenTK/Graphics/Display.cs (Browse further)