Commit Graph

66 Commits

Author SHA1 Message Date
Chris Danford 70446551a9 add half-finished screen centering code (necessary for arcade and Xbox) 2003-10-11 01:51:36 +00:00
Glenn Maynard 2207d9e4a2 Fix g++ compile error.
Improve output.
2003-10-09 07:28:02 +00:00
Glenn Maynard ea812292b1 support 4-bit palettes 2003-10-09 06:33:11 +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
Steve Checkoway 445c593b2a Add vsync for OS X. 2003-09-22 11:14:31 +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 a97fca9681 remove dupe code 2003-09-06 05:46:28 +00:00
Glenn Maynard 69f0f57818 Hopefully fix hold notes for real 2003-09-06 05:32:42 +00:00
Glenn Maynard 13cccb9991 Fix crashes in RageDisplay_OGL::UpdateTexture when the surface and texture
formats differ.
2003-08-29 04:46:54 +00:00
Glenn Maynard 38233e713a sanity check 2003-08-29 03:03:29 +00:00
Glenn Maynard 3728708145 Improve error messages when OpenGL video init fails 2003-08-28 00:08:01 +00:00
Glenn Maynard 98c7c09cc7 Work on improving error messages when video init fails 2003-08-27 23:36:09 +00:00
Glenn Maynard 82314802d5 fix hold note artifacts 2003-08-18 01:25:13 +00:00
Chris Danford 867dc42ab7 log more info if glDeleteTextures fails 2003-08-10 03:13:23 +00:00
Glenn Maynard 03d507ee54 cleanup 2003-08-03 05:40:40 +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
Glenn Maynard e3cf80ae04 Fix screenshot endianness. 2003-07-09 06:16:19 +00:00
Glenn Maynard c67a529bec dur 2003-07-09 04:18:01 +00:00
Glenn Maynard cc739adac8 more thourough GL_UNSIGNED_SHORT_1_5_5_5_REV check 2003-07-09 03:22:27 +00:00
Glenn Maynard e4cf884bde Cope with broken drivers that don't support _REV formats. 2003-07-09 03:16:28 +00:00
Glenn Maynard 7dc6d805db add error conditions 2003-07-07 22:56:02 +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 12d77daa2a better output 2003-07-03 02:42:44 +00:00
Glenn Maynard 324b2ab1cf #pragma comment is win32 only
fix warning
2003-06-30 06:23:42 +00:00
Glenn Maynard 108a3cceee add FMT_A1BGR5 2003-06-30 03:13:53 +00:00
Glenn Maynard ce518b6bb2 Allow any image format when creating a texture. 2003-06-30 02:39:56 +00:00
Glenn Maynard 229045627b guh 2003-06-29 08:15:35 +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 55705d34d7 don't mess with texture parameters when updating 2003-06-28 02:27:04 +00:00
Glenn Maynard 4f2d551e90 bring RageDisplay_OGL::CreateTexture and UpdateTexture closer
together
2003-06-28 02:23:35 +00:00
Glenn Maynard 7f5b42cc9d cleanup 2003-06-28 02:19:31 +00:00
Glenn Maynard 3a9205e1d2 move prototype 2003-06-28 02:03:26 +00:00
Glenn Maynard 06207a0171 Clean up endianness mess. 2003-06-28 01:45:44 +00:00
Glenn Maynard 537ae7e991 fix index 2003-06-27 02:11:13 +00:00
Glenn Maynard 2206e32cef Simplify exception handling. Improve fallback if we can't set up an
OpenGL window.
2003-06-25 20:44:49 +00:00
Glenn Maynard c8e02ec0ae cosmetic 2003-06-22 01:53:04 +00:00
Glenn Maynard 2d97a1daa0 add GetTextureDiagnostics (not used yet) 2003-06-22 01:20:58 +00:00
Glenn Maynard 2eef2635b0 also unneeded 2003-06-21 22:39:03 +00:00
Glenn Maynard ca039d1aae unneeded 2003-06-21 22:37:59 +00:00
Steve Checkoway 77cfa7b87a Use local-endian screenshots. (This didn't just switch it for everybody screwing up little-endian machines did it?) 2003-06-18 09:56:46 +00:00
Glenn Maynard 2937cc73c7 fix more GL_NO_ERROR problems 2003-06-12 19:40:44 +00:00
Glenn Maynard bfcb68fd2b fix/simplify 2003-06-11 01:22:14 +00:00
Glenn Maynard b7eebb5df5 Add some code to try to fix texture masks on big endian machines. 2003-06-11 01:19:02 +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 4486bd1754 Oops. Fix a silly bug on systems without paletted textures.
Fix assert failure.
2003-05-31 09:10:18 +00:00
Chris Danford d0b9a755cd fix logging crash (only showed up in release builds run under Win98) 2003-05-30 23:15:53 +00:00
Glenn Maynard 9354eb8e5b Move tables to the top.
Add a paletted texture test; hopefully this will prevent it from happening
later, where it's inconvenient.
2003-05-30 20:16:30 +00:00