Glenn Maynard
15feca28cf
bind
2007-03-24 00:39:49 +00:00
Glenn Maynard
d640dbc9d9
add RageTextureLock
2007-03-22 18:58:40 +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
Glenn Maynard
4af53a0de9
RageDisplay::GetTexture, mostly for debugging for now
2007-02-24 23:17:34 +00:00
Glenn Maynard
033becc25f
support GL_ARB_texture_float
2007-02-24 12:58:31 +00:00
Glenn Maynard
8f29e21c9f
always use 0 for the default texture
2007-02-21 03:54:12 +00:00
Glenn Maynard
00c3a91989
4-TLU hardware is common
2007-02-20 00:32:39 +00:00
Glenn Maynard
8ac9571d1e
add EffectMode
2007-02-14 01:51:50 +00:00
Glenn Maynard
c3a0714e4a
make Quad less special. Create a "default" texture object for the
...
"no texture" properties. This way, loaded sprites always have a
texture loaded.
2007-02-13 07:39:49 +00:00
Glenn Maynard
5600e93d3a
add TextureUnit param to SetSphereEnvironmentMapping
2007-02-13 06:04:30 +00:00
Glenn Maynard
a9fd52cce0
add TextureUnit param to SetTextureWrapping
2007-02-13 05:56:24 +00:00
Glenn Maynard
863062f7d1
add TextureUnit param to SetTextureFiltering
2007-02-13 05:09:54 +00:00
Glenn Maynard
ebb7189b88
add TextureUnit param to SetTextureMode
2007-02-13 04:59:05 +00:00
Glenn Maynard
9e94e85a35
remove compat
2007-02-13 04:15:50 +00:00
Glenn Maynard
4b707da08b
merge SetTextureMode functions
2007-02-13 04:02:08 +00:00
Glenn Maynard
74aaecc2b9
add RageDisplay::DrawSymmetricQuadStrip
2007-01-15 08:08:57 +00:00
Glenn Maynard
2ce839e4eb
Invalid
2006-10-07 04:25:28 +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
33b2507ddd
basic RTT API
2006-07-26 03:36:47 +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
99102370ca
const
2006-07-25 19:35:06 +00:00
Glenn Maynard
df153fc924
make the centering matrix a stack, like the rest
2006-07-25 19:34:11 +00:00
Glenn Maynard
2ddb0c2912
Use "i" for ints; don't distinguish between signed and unsigned. (If we're
...
marking unsigned ints, that seems to imply marking long ints, doubles vs.
floats, etc; Hungarian serves little enough purpose without being that fine-
grained.)
2006-07-24 06:11:37 +00:00
Glenn Maynard
d0bcf2052d
RageTexture is a wrapper around RageDisplay's textures; RageDisplay
...
itself doesn't use it. Don't pass in RageTexture to SetTexture;
use RageDisplay's native texture handles.
2006-07-23 03:19:49 +00:00
Glenn Maynard
7b17d06133
split out GetCenteringMatrix
2006-03-26 21:59:29 +00:00
Steve Checkoway
a65d13c6d1
class -> typedef set.
2006-02-07 08:29:36 +00:00
Chris Danford
bcf84d9bda
re-add Auto AR. Tie it to the desktop resolution which does not change when toggling between fullscreen and windowed. This assumes that the desktop resolution is using square pixels. This assumption will hold true for all out-of-the-box machines with a widescreen display.
2006-02-06 23:40:28 +00:00
Chris Danford
dbafa29a88
make RageDisplay::Init virtual to remove dupe code
2006-02-06 20:14:02 +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
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
35b4fef38e
add concurrent rendering hooks
2006-01-17 01:24:40 +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
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
Chris Danford
730a113ed6
enumerate resolutions
...
use mixed case for prefs values
2005-11-26 07:22:33 +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
Chris Danford
7f5a4b8373
move VideoModeParams out of RageDisplay to reduce header dependencies
2005-11-10 18:37:04 +00:00
Chris Danford
3f6e95b7d8
fix D3D texture coord generation
2005-11-05 03:08:09 +00:00
Chris Danford
1903e07f56
if DISPLAY->SupportsPerVertexMatrixScale, then merge meshes with equal names. The allows some NoteSkins to be drawn in either 2 meshes or only 1 if vertex shaders are supported.
2005-10-21 06:36:08 +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
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
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
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