Commit Graph

143 Commits

Author SHA1 Message Date
Chris Danford 332c2b318c break battle into two PlayModes: CPU_BATTLE, HUMAN_BATTLE 2003-07-08 19:56:56 +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 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 2206e32cef Simplify exception handling. Improve fallback if we can't set up an
OpenGL window.
2003-06-25 20:44:49 +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 3e1707e641 Consolidate poly line code, so it can be used with both renderers. Use it
with D3D instead of hardware lines.
2003-05-27 00:20:54 +00:00
Glenn Maynard 2ddc78909a Combine binaries, so we can choose the renderer. No actual selection
yet; change CreateDisplay if you want to do that for the next few hours.
2003-05-26 19:42:04 +00:00
Glenn Maynard 56b79a197d Make pixel format querying a member (massaging for merge).
Remove a function from the header.
2003-05-26 03:12:12 +00:00
Chris Danford a75cd6e7b1 Fix D3D z-buffer problem by having separate GetOrthoMatrix functions for OGL and D3D.
I don't understand why the two APIs create an ortho matrix so differently, but I'm tried of messing with it for now.
2003-05-25 00:43:44 +00:00
Chris Danford 02016ae442 Reorganize RageDisplay
Add Direct3D renderer (separate project configuration)
Add Xbox project config (doesn't yet compile)
2003-05-22 05:28:37 +00:00
Chris Danford 54bedc3eba clean up RageDisplay methods, add ability to mask song banner
The masking uses the Z-buffer under the assumption that some cards don't have a stencil.  Should we be using the stencil instead?  It doesn't really matter because we never need both the Z buffer and stencil buffer simultaneously.
2003-05-15 06:09:19 +00:00
Glenn Maynard df0a74e1b5 add glow modes 2003-05-04 22:35:42 +00:00
Chris Danford 4cbdfbf128 optimizing Model drawing 2003-05-04 07:22:20 +00:00
Chris Danford 8e96af518a working on model lighthing/texture mapping 2003-04-27 05:14:27 +00:00
Chris Danford b72804294a working on Mesh support
- loads only Milkshape ASCII
- doesn't yet load textures or render with materials
2003-04-25 21:05:40 +00:00
Glenn Maynard 83d7453553 remove another GLU call 2003-04-25 08:17:27 +00:00
Glenn Maynard 7f8a351966 remove a GLU call 2003-04-25 06:58:19 +00:00
Glenn Maynard fe33dec385 Partial s/GetString/c_str/.
(watch out for PlayerOptions::GetString and SongOptions::GetString)
2003-04-25 00:01:35 +00:00
Chris Danford 1be7055f59 working on perspective stuff for tilted menu items 2003-04-23 02:23:51 +00:00
Glenn Maynard 84cb834f26 cleanup 2003-04-22 05:22:05 +00:00
Glenn Maynard 124fe039fd typo 2003-04-19 09:46:22 +00:00
Glenn Maynard a29d19903d Add a workaround for the current nVidia driver problems. 2003-04-18 09:13:29 +00:00
Glenn Maynard 07c0cdd64e add near/far clip plane control to EnterPerspective 2003-04-16 18:57:20 +00:00
Glenn Maynard 60dc76cff8 Add RageDisplay::Update().
ResolutionChanged() is now called by the LowLevelWindow when
the res changes, instead of the other way around.
2003-04-12 02:28:26 +00:00
Glenn Maynard 6e6c60858a consolidate Enable/DisableTextureWrapping 2003-04-10 18:25:17 +00:00
Glenn Maynard 753507fce8 Oops. smPostMultMatrixf was a pre-multiply.
Rename smPostMultMatrixf to PostMultMatrix; add PreMultMatrix
and alias it to MultMatrix.
2003-04-10 17:58:27 +00:00
Glenn Maynard d821c4f1b5 add LowLevelWindow 2003-04-07 00:54:32 +00:00
Glenn Maynard 0fbde25415 reduce global SDLisms 2003-04-06 23:30:58 +00:00
Glenn Maynard 909565b026 change rotations to degrees 2003-04-02 06:02:55 +00:00
Chris Danford 40195e81c7 header2 -> Common title
Created new PlayerOption group: Perspective
Added pref: DefaultModifiers
Land -> Brake
2003-04-01 19:31:27 +00:00
Glenn Maynard 3df0158662 Handle OpenGL reset semantics in a way that might get upstreamed 2003-03-24 18:27:10 +00:00
Chris Danford 9be16c8dbe Implement RageDisplay::IsWindowed() 2003-03-15 00:19:48 +00:00
Glenn Maynard 0ad5b74051 work around another (easy) gldirect bug 2003-03-06 09:58:25 +00:00
Glenn Maynard 1604222001 Small fix for bAALinesCauseProblems
Add Add bPackedPixelsCauseProblems
2003-03-06 09:25:48 +00:00
Chris Danford 848ad6e2be clean up detection and handling of drivers with problematic AA lines
only draw topmost screen if topmost screen isn't transparent (speeds up options menus in editor)
optimized beat bar drawing in NoteField
2003-02-20 21:22:18 +00:00
Chris Danford 32cdbed7bf Added detection of buggy Voodoo3 drivers, then found a hack that fixes the problems. Sigh... 2003-02-20 10:41:43 +00:00
Glenn Maynard b0e5b24549 move debug dump earlier 2003-02-17 03:09:25 +00:00
Glenn Maynard 42cfd6f98c stdafx -> global 2003-02-16 04:01:45 +00:00
Glenn Maynard f4a14f801e scope GLExt stuff explicitly 2003-02-14 23:29:30 +00:00
Glenn Maynard 22bdc18d48 remove g_hWndMain decl 2003-02-14 23:16:57 +00:00
Glenn Maynard 64e797c510 add annoying casts for glext.h constants 2003-02-14 23:13:22 +00:00
Glenn Maynard ed038356b9 type fix 2003-02-14 23:07:34 +00:00
Glenn Maynard 9278d29a9c compile fix 2003-02-14 07:04:19 +00:00
Chris Danford d7b2f341da Fixed some subtle sync issues 2003-02-10 22:08:10 +00:00
Chris Danford 3f537d1586 fixed screenshot causing crash in some resolutions 2003-02-02 02:01:28 +00:00
Chris Danford 6f445f700f more options re-org 2003-02-01 01:11:00 +00:00
Chris Danford ebce24b57e added F6 to save screenshot. (currently this conflicts with the editor's use of F6, but it won't after the editor UI changes) 2003-01-31 22:34:04 +00:00
Glenn Maynard aa2e0a0113 cope with drivers advertising broken or really old extensions 2003-01-31 18:19:58 +00:00
Glenn Maynard d0a01ec8f6 add poly radar pref
no options menu for this; very obscure and, er, we have no room
2003-01-26 03:51:59 +00:00
Andrew Livy 6723b6fdb1 Ez2/Pump/Para Song Select Screen now supports the 'stars' and/or 'blob' difficulty ratings as seen in para/ez2. 2003-01-25 23:48:33 +00:00