Commit Graph

76 Commits

Author SHA1 Message Date
Chris Danford 871a1a9c63 add JPEG screenshots 2004-02-12 06:49:13 +00:00
Chris Danford 3ca8601390 add front face culling 2004-02-04 11:05:33 +00:00
Chris Danford 9502f1c262 draw models with 2 textures with multitexture instead of 2 passes. D3D multitexture not tested yet 2004-02-04 09:55:18 +00:00
Manu Evans c87e9ada30 fixed some warnings 2004-01-31 02:17:47 +00:00
Manu Evans 173d4c2c84 Still tryig to get xbox building..
DeleteObject needed replacing with CloseHandle for xbox (and maybe PC too?)
RageDisplay_D3D was creating dynamic links to the wrong .lib's ..
they are only in the windows build now ..
libs are included in the project file for xbox ..
2004-01-31 01:57:33 +00:00
Chris Danford b3ff1ef883 re-add mipmapping, support it in OpenGL (D3D unimplemented) 2004-01-23 06:20:28 +00:00
Chris Danford 034fcb6bad clean up parameter types 2004-01-06 21:25:46 +00:00
Chris Danford 882406afe8 add spherical environment mapping 2004-01-06 19:54:13 +00:00
Glenn Maynard c1522bff10 s/ ;/;/g 2003-12-30 07:24:03 +00:00
Glenn Maynard f276aaa08c missing headers 2003-12-21 02:06:40 +00:00
Glenn Maynard 1a23e5dea9 fix d3d screenshots 2003-12-13 05:21:46 +00:00
Glenn Maynard cac44ec303 don't use GL_UNSIGNED_SHORT_1_5_5_5_REV for movie textures
if it'll require an additional conversion
2003-11-29 17:56:09 +00:00
Glenn Maynard e21f149d3b separate Z-write and Z-test flags 2003-11-18 20:33:18 +00:00
Glenn Maynard 0d1966c2f6 Bias depth values when drawing in BLEND_NO_EFFECT. 2003-11-18 04:03:58 +00:00
Chris Danford 47def7d3dc xbox updates 2003-11-13 00:39:36 +00:00
Chris Danford 412abd7389 add logging to RageDisplay_D3D::RageDisplay_D3D to try and find point of crash 2003-11-01 06:50:12 +00:00
Chris Danford aa50c93791 fix BLEND_ADD bug 2003-10-22 01:47:40 +00:00
Chris Danford 70446551a9 add half-finished screen centering code (necessary for arcade and Xbox) 2003-10-11 01:51:36 +00:00
Chris Danford e63eb9bdfa don't throw fatal if CreateDevice or Reset fails so that the resolution fallback logic has a chance 2003-10-08 07:12:48 +00:00
Glenn Maynard 5117e94742 Use the "unused" bit in SDL palettes for alpha. 2003-10-08 01:24:53 +00:00
Glenn Maynard f611e2461e namespace cleanup 2003-10-03 21:38:38 +00:00
Chris Danford babe533a9e fix D3D lighting 2003-09-21 18:54:54 +00:00
Chris Danford eebb417840 clean up perspective
fix mini
fix frustum matrix in D3D
2003-09-21 18:07:29 +00:00
Chris Danford c8f7c02036 Split ModelView matrix stack into View and World stacks.
Add "hallway" and "distant" mods.
2003-09-21 02:36:28 +00:00
Glenn Maynard 28971334d1 Remove loud log 2003-09-03 03:55:39 +00:00
Glenn Maynard 8e4dd81b8a Remove unneeded check. 2003-09-03 03:44:08 +00:00
Glenn Maynard 98c7c09cc7 Work on improving error messages when video init fails 2003-08-27 23:36:09 +00:00
Glenn Maynard 1913fddee0 Change progressive -> interlaced. Not Xbox-only. (Avoid making
RageDisplay interfaces arch-specific.)
2003-08-12 19:08:07 +00:00
Glenn Maynard 75c83d8429 minor cleanup 2003-08-06 07:08:02 +00:00
Manu Evans 1735ddb47c no message 2003-08-04 10:18:06 +00:00
Manu Evans 135103a4e9 PAL and Progressive Scan support for XBox .. 2003-08-03 06:41:52 +00:00
Chris Danford 278cb4c3f1 runs on Xbox 2003-07-22 07:47:27 +00:00
Glenn Maynard 3d34e3a8e8 Don't take a reference to a pointer in CreateTexture.
It might be useful to save some conversions--that is, if a conversion to
a native format is needed, it'll be available to the caller--but it's confusing
and it's never helpful in practice.  It was causing some banner-related
crashes, so let's just remove it.
2003-07-15 23:55:56 +00:00
Chris Danford 8158ca8770 compiles on Xbox (still a CRT linking error though) 2003-07-11 03:15:28 +00:00
Chris Danford c67d78d948 let Actor subclasses have first crack at parsing commands
allow Models and BitmapTexts in BGAnimationLayer (detected through file extension)
add RageModelVertex, which doesn't have a color property
add "stretch" file name hint for textures
2003-07-07 01:29:18 +00:00
Glenn Maynard 108a3cceee add FMT_A1BGR5 2003-06-30 03:13:53 +00:00
Glenn Maynard 7951b5f3e7 Add helpers: RageDisplay::CreateSurfaceFromPixfmt, RageDisplay::FindPixelFormat.
UpdateTexture can now take any image format; it doesn't have to match the
original format, or even be a standard pixel format.  This is because we
can often do the conversion much more efficiently within UpdateTexture
than we can in the caller.  With D3D, we can convert any source format
as we copy, preventing an extra blit. OpenGL can do it on the fly if
it happens to be a known texture format.

We can figure out the pixel format from the image itself, so there's
no need to pass pixfmt to UpdateTexture.

Add BGR8, for movies with OpenGL.
2003-06-29 08:13:18 +00:00
Glenn Maynard b605e46dbf cleanup 2003-06-28 02:27:27 +00:00
Chris Danford b9acabbed5 fix VC6 compile error 2003-06-27 08:33:15 +00:00
Glenn Maynard 22cef46d85 improve model lighting in d3d 2003-06-27 02:04:56 +00:00
Glenn Maynard fd9fe23cf7 fix d3d model crash 2003-06-27 00:57:02 +00:00
Glenn Maynard c898370ed0 improve cleanup after a throw 2003-06-25 21:03:41 +00:00
Chris Danford 474c0f5a64 fix model rendering in D3D (still doesn't look quite the same as OpenGL) 2003-06-23 17:04:00 +00:00
Chris Danford fd58b41eef fix Savage crashes in D3D 2003-06-21 16:21:31 +00:00
Glenn Maynard 3d43798f88 Handle SDL_INIT_VIDEO failing, so we don't crash later. 2003-06-11 03:17:39 +00:00
Chris Danford bf77ee902f fix DrawIndexedTriangles bug that caused uninited verticies to be drawn 2003-06-07 11:54:44 +00:00
Chris Danford 428d560a6b Clean up resolution fallback logic
Add video settings for G400
Working on composited text
2003-06-05 19:29:27 +00:00
Glenn Maynard 364e3ef8cd Use 1280x960, not 1280x1024. The former is a standard 4:3 resolution;
the latter is a popular but bogus 5:4 resolution.
2003-05-30 08:59:16 +00:00
Chris Danford 2a85a2b9df Fix crash alt+tabbing in and out of fullscreen on Voodoo3+D3D+WinXP. 2003-05-30 00:30:40 +00:00
Glenn Maynard abfb4c62eb Move the tables together. 2003-05-29 00:16:29 +00:00