Chris Danford
730a113ed6
enumerate resolutions
...
use mixed case for prefs values
2005-11-26 07:22:33 +00:00
Chris Danford
b3c7b9c99d
fix viewport not correctly reset when alt+tabbing out of and back into full-screen opengl
2005-11-24 10:40:23 +00:00
Chris Danford
5c6457d938
make closer to OpenGL sphere mapping
2005-11-23 22:16:09 +00:00
Renaud Lepage
cb34951e33
Xbox fix for RGBA8
2005-11-16 04:28:44 +00:00
Glenn Maynard
4f52fab65a
In OpenGL (not D3D), it's our job to unset and reset the full-screen video mode
...
when we lose focus.
2005-11-11 21:22:18 +00:00
Chris Danford
d081c0902c
make sphere mapping texture coords look more like OpenGL (though it's still significantly different when viewing side-by-side)
2005-11-11 21:11:30 +00:00
Chris Danford
311fd70573
when resetting the D3D device, use the preferred video mode and not the current desktop mode. This fixes "Win98, full-screen, alt-tab away, alt-tab back and the game is running fullscreen at the desktop video mode"
2005-11-10 18:55:03 +00:00
Chris Danford
7f5a4b8373
move VideoModeParams out of RageDisplay to reduce header dependencies
2005-11-10 18:37:04 +00:00
Chris Danford
af115bab90
handle sentinel values for refresh rate instead of asserting
2005-11-10 10:22:15 +00:00
Glenn Maynard
946fce020b
If BeginFrame returns false (eg. we have no drawing context), then EndFrame
...
will never be called. This caused messages to not be handled when we lose
focus in fullscreen, so we could never regain focus.
2005-11-09 00:19:02 +00:00
Chris Danford
44e517339d
make env mapping match OpenGL's "sphere map" tex coord gen
2005-11-07 03:58:14 +00:00
Chris Danford
bfc7a6b758
Undo attempt at vsync in windowed mode. It's causing jerky animation and aparent skipping (even though the skip display isn't showing any hiccups)
2005-11-07 00:43:50 +00:00
Glenn Maynard
b35541b4ce
simplify
2005-11-06 23:03:23 +00:00
Glenn Maynard
f5c9f4661f
Modify the existing viewport, instead of constructing a new one. Fixes
...
resizing problems.
2005-11-06 23:02:23 +00:00
Glenn Maynard
3f5a42adc6
fix texture leak.
...
D3D has the best response to these reference leaks ever: on shutdown, some
part of window closing or screen mode resetting will freeze for about five seconds,
depending on the window mode. No indication why is given.
2005-11-05 16:48:35 +00:00
Glenn Maynard
36b7ba7d0c
revert horrible WinCVS braindamage
2005-11-05 16:20:53 +00:00
Glenn Maynard
d7c160865a
cvs upd -D "one week ago" RageDisplay_D3D.cpp
2005-11-05 16:18:56 +00:00
Chris Danford
b2b65c2711
cleanup xbox comment
2005-11-05 07:03:05 +00:00
Chris Danford
aca5ee8677
fix Vsync in windowed
2005-11-05 06:55:23 +00:00
Glenn Maynard
e378390803
fix non-sphere map path in RageDisplay_D3D::SendCurrentMatrices ignores 'tu'
...
fix SetTextureModeAdd alpha component (behavior to match GL_ADD)
2005-11-05 04:27:36 +00:00
Chris Danford
3f6e95b7d8
fix D3D texture coord generation
2005-11-05 03:08:09 +00:00
Chris Danford
6199dbacf0
fix texture coord transform
2005-11-04 17:17:12 +00:00
Glenn Maynard
dc9f0ce241
fix D3D z-bias to work like OpenGL's glDepthRange
2005-11-04 15:04:35 +00:00
Chris Danford
bc6c7c89bc
move PixelFormat outside of RageDisplay because so many classes outside of RageDisplay use it.
...
Log PixelFormat strings instead of numbers for easier to read logs.
2005-09-29 17:15:12 +00:00
Chris Danford
48ebc53549
return NULL -> return CString() for clarity and efficiency
2005-09-04 16:55:21 +00:00
Glenn Maynard
8b0bd8fd11
cleanup
2005-09-03 23:42:51 +00:00
Chris Danford
e439ae2a96
return "" -> return NULL
2005-09-02 00:14:07 +00:00
Renaud Lepage
7f50c97035
No need to find the refresh rate on Xbox, eh?
2005-08-23 02:23:36 +00:00
Chris Danford
2f7644b044
fix multitexture
2005-07-24 10:25:47 +00:00
Chris Danford
a4a297ea90
add same "support material color while lighting is off" hack as the OpenGL renderer
2005-07-24 09:47:54 +00:00
Glenn Maynard
a885cdc0cd
allow using frame limiter to give up CPU between frames, if the video
...
drivers aren't doing it (which they should be)
2005-07-13 06:31:08 +00:00
Glenn Maynard
989565227b
add SupportsThreadedRendering flag (not in OGL yet)
2005-07-13 01:04:59 +00:00
Glenn Maynard
fcbe90cc09
merge dupe EndFrame code
2005-07-13 00:37:43 +00:00
Glenn Maynard
796ac96c50
remove Update. DISPLAY has enough places to hook, and doesn't need access to the gameplay timer. Do this stuff in EndFrame instead.
2005-07-12 23:16:03 +00:00
Renaud Lepage
1b124c16a5
Someone had made ifdefs that were confusing if compiling for Xbox. The conflictual situations have been resolved.
2005-05-30 23:43:37 +00:00
Thad Ward
5949e5bc90
(this is possibly going to annoy some people, but..)
...
put all (obvious) MSVC lines in #if defined(_MSC_VER) blocks, primarilly
to allow alternative win32 compilers to be used.
2005-05-11 04:43:54 +00:00
Glenn Maynard
47db6ca9c4
floating-point zbias. For compatibility, 0 is off and 1 is the old "zbias on".
...
Going beyond 1 is allowed, but the usable/useful range of values is currently
undefined--try to stick to 0..1.
2005-05-06 04:05:02 +00:00
Glenn Maynard
59f6c7848a
separately-controllable ZBias
2005-05-06 03:24:41 +00:00
Ben Anderson
0db665d4d6
Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory.
2005-03-14 06:44:38 +00:00
Glenn Maynard
1634d1cad1
GraphicsWindow::GetHwnd
2005-02-08 05:23:57 +00:00
Glenn Maynard
1d3613f161
for real this time :)
2005-01-22 03:39:39 +00:00
Chris Danford
663bd5d8b7
fix misspelling
2005-01-21 06:13:45 +00:00
Glenn Maynard
8a29cc0459
remove separate glow modes
2005-01-08 22:14:08 +00:00
Glenn Maynard
a1be0fdb33
add GetNumTextureUnits()
2005-01-04 05:34:58 +00:00
Glenn Maynard
85ca41e47c
exceptions
2004-11-30 20:30:33 +00:00
Glenn Maynard
07acc3fad4
exception handling
2004-11-30 20:26:30 +00:00
Glenn Maynard
6f46898f69
make SetVideoMode not throw
2004-11-30 20:01:07 +00:00
Ryan Dortmans
e2d265993f
Xbox compile fix
2004-11-26 23:30:59 +00:00
Glenn Maynard
7caea1f23a
cleanup (this stuff appears stubbed on xbox)
2004-11-26 19:58:36 +00:00
Ryan Dortmans
30a01a3c99
Xbox: virtual memory fixes
2004-11-08 02:38:32 +00:00