Commit Graph
145 Commits
Author SHA1 Message Date
Steve Checkoway aef7bdf3c1 Cleanup. 2006-01-27 10:35:56 +00:00
Steve Checkoway 00429b8c9d Add license. 2006-01-27 10:33:07 +00:00
Steve Checkoway 6ac24c8cda Fix concurrent rendering while windowed. Also shutdown fullscreen cleanly and fix memory leak. 2006-01-27 10:30:24 +00:00
Glenn Maynard f4f326f893 implement concurrent rendering on X11. Still a little flickery when switching in and out of threaded mode; not sure why yet. 2006-01-27 09:21:43 +00:00
Glenn Maynard eb0e1f4295 add an overload which is called from the main thread, just before using the concurrent rendering thread 2006-01-27 09:13:03 +00:00
Glenn Maynard 1a070c7a0c fix comment 2006-01-24 21:15:35 +00:00
Steve Checkoway bf42e5a4d7 I forgot to test concurrent rendering in windowed mode. It isn't working so remove it for now. 2006-01-22 03:18:28 +00:00
Steve Checkoway 79faafb593 CString -> RString 2006-01-22 02:50:56 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Steve Checkoway 2dc6a8fa66 Cleanup and use core graphics directly to swap buffers rather than going though the overhead of the obj-c calls. 2006-01-21 13:40:01 +00:00
Steve Checkoway 3f5c921357 Implement concurrent rendering. 2006-01-21 13:33:04 +00:00
Steve Checkoway 297949b7c5 If the OGL context changes, we must set the display mode and we must set vsync. 2006-01-21 13:00:51 +00:00
Steve Checkoway 5150e3a9c3 Don't shutdown full screen if attempt fails. It's possible other attempts will be made in full screen. Going back and forth causes unnecessary flickering. 2006-01-20 11:36:26 +00:00
Steve Checkoway cdd1f94019 Don't attempt to change the display modes unless it's needed. (It's most likely a no-op, but don't even bother.) 2006-01-20 11:33:07 +00:00
Steve Checkoway 6b236cee94 Simplify. 2006-01-20 11:19:25 +00:00
Chris Danford 65aff05a13 fix compile 2006-01-20 08:33:27 +00:00
Steve Checkoway a123e5bc76 Return a const reference rather than a copy. 2006-01-19 08:20:41 +00:00
Steve Checkoway 5676e10e33 Attempt to handle the OGL contexts more gracefully. 2006-01-18 08:44:52 +00:00
Steve Checkoway 378a8a2adc m([:upper:][:alpha:]*) -> m_\1 2006-01-18 02:48:10 +00:00
Steve Checkoway 562501ac78 Attempt at concurrent rendering. It seems to cause the computer to crash, so commented out. Clearly, I'm doing something wrong but I'm not sure what. 2006-01-17 09:33:14 +00:00
Steve Checkoway 3a10c521de Hack around using actual video mode params to store preferences. 2006-01-17 08:35:51 +00:00
Steve Checkoway ec789f1473 Use a buffered window. This fixes the last of the GUI issues. Allows resizing and is very careful to update the graphics context only in the main thread (in this case, SM's main thread, not the GUI thread). It does so by managing the NSOpenGLContext explicitly rather than using NSOpenGLView to do it for us. 2006-01-17 06:10:33 +00:00
Steve Checkoway 6edba40152 Do neither. Just copy the value. 2006-01-17 04:20:02 +00:00
Glenn Maynard 9404d25a0e cleanup 2006-01-17 03:25:25 +00:00
Glenn Maynard 5e010c8f23 minor style tweaks 2006-01-17 02:08:32 +00:00
Glenn Maynard b1015f0458 We allow this in Windows, and I don't see any reason to disallow it ... 2006-01-17 02:03:07 +00:00
Glenn Maynard 918dac41ab cleanup 2006-01-17 02:00:27 +00:00
Glenn Maynard c17c03b4f0 static 2006-01-17 01:28:24 +00:00
Glenn Maynard 8c78a40703 Implement concurrent rendering in OpenGL in Windows. (D3D already
worked.)  It's still off by default.
2006-01-17 01:27:29 +00:00
Glenn Maynard 35b4fef38e add concurrent rendering hooks 2006-01-17 01:24:40 +00:00
Steve Checkoway ca51dc9bd3 Apple decided to deprecate two perfectly good functions, replace them with lower level dyld code and use two-level namespace lookup instead. 2006-01-15 12:21:19 +00:00
Steve Checkoway d42617abf1 Remove unused. 2006-01-15 11:07:30 +00:00
Steve Checkoway 7034879a79 Use SMMainThread with LLW_Cocoa. This fixes just about every GUI issue. For some reason, mousing over the button does not highlight them. Other than that, everything seems to work. 2006-01-15 05:30:48 +00:00
Glenn Maynard 2025761281 cleanup 2006-01-15 04:12:50 +00:00
Glenn Maynard affaf07d35 rename ConfigureGraphicsWindow -> CreateGraphicsWindow 2006-01-15 01:43:04 +00:00
Glenn Maynard 16c7813949 remove SetVideoModeParams call 2006-01-15 01:07:32 +00:00
Glenn Maynard 50b0f360f4 CreateGraphicsWindow is done by ConfigureGraphicsWindow 2006-01-15 00:59:32 +00:00
Glenn Maynard 7c2f1fc48b RecreateGraphicsWindow -> CreateGraphicsWindow 2006-01-15 00:38:43 +00:00
Glenn Maynard 1fdb63a26d clarify 2006-01-15 00:12:52 +00:00
Steve Checkoway a0ed014d57 Remove hack for SDL. 2006-01-14 23:24:30 +00:00
Steve Checkoway 08173c6510 Handle swap interval in LLW_Cocoa itself. 2006-01-14 23:22:18 +00:00
Steve Checkoway ca85424ec5 Fix memory leak, set OGL parameters. 2006-01-14 22:56:23 +00:00
Steve Checkoway 07168018d1 Closing the window quits the program. Fix focus issues. 2006-01-14 10:40:09 +00:00
Steve Checkoway 713ecb81ce Full screen works. Mouse hiding works. A few GUI issues remain. For example, closing the window does nothing more than close the window. 2006-01-14 10:08:42 +00:00
Steve Checkoway 7aa6310339 Make this usable. Some issues still exist. E.g., full screen does not work yet. 2006-01-14 05:49:26 +00:00
Steve Checkoway 3a820b1c76 This code is a work in progress and does not currently work. 2006-01-14 01:09:33 +00:00
Glenn Maynard e24076f744 build fix 2006-01-04 17:51:43 +00:00
Glenn Maynard c0a86d6c44 use HOOKS->SetHasFocus 2005-12-30 03:59:10 +00:00
Glenn Maynard eca5a911d8 unused 2005-12-21 06:13:47 +00:00
Chris Danford d698a5f1ec CString -> RString in RageUtil
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00