Commit Graph

264 Commits

Author SHA1 Message Date
Glenn Maynard 15feca28cf bind 2007-03-24 00:39:49 +00:00
Glenn Maynard bf16705d1e handle BGRA8; nVidia cards prefer this format 2007-03-22 05:30:19 +00:00
Glenn Maynard 5dc6e79d3c X1R5G5B5 format 2007-03-20 07:51:56 +00:00
Chris Danford e9f66fbc75 Resize down to height = 480. That way, we don't resize down typical widescreen resolutions. 2007-02-26 09:36:43 +00:00
Glenn Maynard 863062f7d1 add TextureUnit param to SetTextureFiltering 2007-02-13 05:09:54 +00:00
Glenn Maynard fa42d9099d fix crash when only 3 verts 2007-01-16 05:36:10 +00:00
Glenn Maynard 74aaecc2b9 add RageDisplay::DrawSymmetricQuadStrip 2007-01-15 08:08:57 +00:00
Steve Checkoway e87789da7c Rename XToString2 to XToString. 2006-10-15 00:09:18 +00:00
Steve Checkoway 04bff6bc1d Use XToString2. 2006-10-15 00:00:22 +00:00
Glenn Maynard 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Steve Checkoway 5265df4393 Fix memory leak if screenshot fails. 2006-09-16 03:04:04 +00:00
Glenn Maynard 1f471f511b reset settings which are set every frame or every actor
in SetDefaultRenderStates; fixes centering
2006-09-10 08:36:31 +00:00
Glenn Maynard dda0e12deb init centering matrix with identity by default; reinit other stacks, too, so
we're consistent if DISPLAY is recreated
2006-09-10 08:34:50 +00:00
Glenn Maynard c374b10233 fix strange init 2006-09-10 07:56:06 +00:00
Chris Danford 4387f6bce9 fall back to 32 bpp - "Intel(R) 82810E Graphics Controller" won't accept a 16 bpp surface if the desktop is 32 bpp, so try 32 bpp as well. 2006-08-03 09:23:10 +00:00
Glenn Maynard 1af6d6f0fc Don't push and pop the centering matrix. It's reconstructed from Centering.
Push Centering instead.
2006-07-28 19:17:09 +00:00
Glenn Maynard b1d0b7fe87 move centering params into a struct 2006-07-28 18:58:34 +00:00
Glenn Maynard 9c73aed254 Do SetDefaultRenderStates in BeginFrame, instead of on init,
so we don't depend on state being preserved long-term, and
so every renderer doesn't have to do this.
2006-07-25 20:10:56 +00:00
Glenn Maynard 90d4dc17d5 CenteringPushMatrix, CenteringPopMatrix 2006-07-25 19:53:00 +00:00
Glenn Maynard 573946668c cleanup 2006-07-25 19:52:34 +00:00
Glenn Maynard 99102370ca const 2006-07-25 19:35:06 +00:00
Glenn Maynard 263ad101d5 const 2006-07-25 19:34:48 +00:00
Glenn Maynard df153fc924 make the centering matrix a stack, like the rest 2006-07-25 19:34:11 +00:00
Glenn Maynard cd2bc5df7d fix off-by-one errors in FPS display 2006-06-26 18:55:17 +00:00
Glenn Maynard 185d3d902d It's RageDisplay::EndFrame()'s job to give up CPU between frames. Currently,
we're doing this partially in EndFrame (in FrameLimitBeforeVsync and/or the
actual vblank wait), and partially in RunGameLoop.  These serve the same
purpose, so merge them.

(The renderer itself should have more control over this, but this is an
improvement.)
2006-04-05 05:36:04 +00:00
Glenn Maynard 7b17d06133 split out GetCenteringMatrix 2006-03-26 21:59:29 +00:00
Chris Danford a13ae48a19 make hard-coded string localizable 2006-02-06 21:02:50 +00:00
Renaud Lepage 11af21d11b Reverted a change, and put the IFDEF a little higher for testing purposes. 2006-01-24 00:21:11 +00:00
Renaud Lepage 4dcdb7efa9 Tiny Xbox update 2006-01-23 23:14:18 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Steve Checkoway 1268e3d3f0 Fall back onto more a sensible fallback. 2006-01-20 11:40:35 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Glenn Maynard 4a66ba6267 cleanup 2005-12-29 19:38:58 +00:00
Glenn Maynard e8b9863052 static 2005-12-29 19:34:28 +00:00
Glenn Maynard cdd516fd74 Eliminate SCREEN_WIDTH/HEIGHT from RDisplay. It's up to the
user code to pass the desired camera space dimensions to
LoadMenuPerspective (normally done by Screen).  SDimensions.h
is high-level.
2005-12-29 18:33:03 +00:00
Glenn Maynard c580fc15ef remove old comment; EnterPerspectiveMode is gone 2005-12-29 09:20:40 +00:00
Glenn Maynard 9c5863a751 unneeded 2005-12-29 09:16:33 +00:00
Glenn Maynard 02cdc08486 Nothing else uses these, and we don't even bother exporting them
to Lua.  Remove them to eliminate an SDimensions.h dependency.
2005-12-29 08:49:54 +00:00
Glenn Maynard bbaf375a33 forgot this was stored here. Not sure if it's better for the AR to be stored here, or if ScreenDimensions::GetScreenAspectRatio should be moved to a RDisplay. After all, the dimensions of the screen (the AR preference) are RageDisplay's domain, not the theme's (just as GetThemeAspectRatio belongs to the high-level theme code and not RDisplay). 2005-12-29 08:44:51 +00:00
Glenn Maynard 6855fa9b2c yuck, need GetScreenAspectRatio for ASPECT_AUTO. better approach coming ... 2005-12-29 08:41:18 +00:00
Glenn Maynard 933669684b reduce use of ScreenDimensions in RDisplay 2005-12-29 08:35:04 +00:00
Glenn Maynard c7a3cbc5fb missed a piece 2005-12-29 08:14:52 +00:00
Glenn Maynard 580ff0716a Centering is a user preference, to adjust the screen, not a theme
setting.  It's usually tied to the screen resolution (will usually
need readjustment anyway if the resolution changes).  Treat the
values as pixels, as if we were using glViewport to do this.
(Reduces dependencies on ScreenDimensions.h, and we don't need
to worry about calling ChangeCentering when the theme changes.)
2005-12-29 08:12:51 +00:00
Glenn Maynard 1f58f31a51 clarify 2005-12-29 07:35:23 +00:00
Chris Danford a84b76890d add assert 2005-12-25 18:59:52 +00:00
Glenn Maynard 9a2229999c unneeded (and not correct; actually surface->w/surface->h) 2005-12-23 19:10:28 +00:00
Steve Checkoway bfd39f66ac Fix screenshot crash. 2005-12-23 13:10:21 +00:00
Glenn Maynard 91250c21c5 cleanup 2005-12-04 16:59:53 +00:00
Glenn Maynard 60bdd7ae04 fix "pull back camera" in widescreen 2005-12-02 16:48:13 +00:00