Commit Graph

229 Commits

Author SHA1 Message Date
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
Chris Danford 3060418806 add the renderer name to stats (so that I won't be confused about which is being used) 2005-11-23 20:42:48 +00:00
Chris Danford 182232344f GetVideoModeParams -> GetActualVideoModeParams
add GetApiDescription
2005-11-11 21:16:48 +00:00
Glenn Maynard 7cbba09b89 SetZBias in SetDefaultRenderStates 2005-11-04 15:42:20 +00:00
Chris Danford 83d437dd6b if hardware doesn't support per-vertex tex matrix scale, apply the scaling of the first vertex to the whole mesh 2005-10-20 14:15:13 +00:00
Glenn Maynard 242f33fa91 fix type 2005-10-13 04:02:23 +00:00
Chris Danford e628f74491 do note coloring with tex coord shifting, not separate elements 2005-10-04 19:45:45 +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
Chris Danford e439ae2a96 return "" -> return NULL 2005-09-02 00:14:07 +00:00
Glenn Maynard 49466a567d use GetStats for logs 2005-08-23 05:15:16 +00:00
Glenn Maynard 94ff3eca36 implement framerate limiting. This is imprecise; it's intended for giving
up CPU before waiting for vsync, and not for limiting to a precise framerate.
2005-07-13 06:16:37 +00:00
Glenn Maynard fcbe90cc09 merge dupe EndFrame code 2005-07-13 00:37:43 +00:00
Glenn Maynard 65e8bd1ac0 update 2005-05-19 01:26:41 +00:00
Glenn Maynard cf933964f2 debug -> options 2005-05-19 01:17:33 +00:00
Chris Danford 0ac5e2b008 add Skew for faux italic fonts 2005-05-02 21:43:27 +00:00
Chris Danford 7ca20486ef use sin lookup table to fix terrible performance with float and tipsy performance on some archs 2005-03-22 00:58:05 +00:00
Glenn Maynard cf99203db5 add m_bNeedsTextureMatrixScale
remove some stuff I didn't mean to commit yet
2005-02-01 02:47:30 +00:00
Glenn Maynard 57f5c487bc move some code out of the header 2005-01-31 22:58:12 +00:00
Glenn Maynard 1823bbcbcc remove old code 2005-01-28 07:55:06 +00:00
Glenn Maynard 61c2064f49 fix mixed tabbing 2005-01-28 07:31:41 +00:00
Glenn Maynard 65e5d35937 unneeded include 2005-01-20 17:18:51 +00:00
Glenn Maynard 9fc3addf45 cleanup 2005-01-20 01:42:05 +00:00
Glenn Maynard 9ebd1d19dd more renames 2005-01-20 01:35:49 +00:00
Glenn Maynard 24250824de At the cost of losing change history, I'm renaming a couple "SDL" filenames
that no longer have any connection to SDL; the names are just too confusing.
2005-01-20 01:26:15 +00:00
Glenn Maynard 10b175566b preserve aspect ratio in screenshots even if resolution is 640x480 2005-01-16 22:14:39 +00:00
Glenn Maynard bdc1b08695 pass DAR to the display; preserve aspect ratio in screenshots 2005-01-16 22:06:36 +00:00
Glenn Maynard 6f46898f69 make SetVideoMode not throw 2004-11-30 20:01:07 +00:00
Glenn Maynard 07f7827cec typo 2004-11-26 19:47:26 +00:00
Chris Danford 72bd480883 CENTER_* -> SCREEN_CENTER 2004-11-05 06:35:10 +00:00
Glenn Maynard 3d084e2a2c move stats formatting to RageDisplay, so renderers can add custom stats 2004-11-05 04:15:06 +00:00
Chris Danford 0a6acd94ae fix centering matrix + perspective projections 2004-10-24 22:59:10 +00:00
Glenn Maynard e483125b9f Make RageDisplay_OGL::GetOrthoMatrix the default implementation. 2004-10-23 17:42:00 +00:00
Chris Danford 03fbb915f3 remove VC6 scoping hacks 2004-09-21 07:53:39 +00:00
Chris Danford 807d892f4f allow theme to specify logical screen dimensions 2004-09-21 06:07:12 +00:00
Glenn Maynard 7573856a99 If the first TryVideoMode fails, log the error, since if one of the fallbacks
works, we'll never see the error.
2004-09-19 01:47:59 +00:00