Commit Graph

88 Commits

Author SHA1 Message Date
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Glenn Maynard d5098c84ce move texture load policy into RageTextureID, so it can be set to volatile consistently
for banners/backgrounds
2004-03-26 10:15:18 +00:00
Glenn Maynard f80c1b7e0e add GetDefaultTexturePolicy, SetDefaultTexturePolicy 2004-02-05 21:58:19 +00:00
Glenn Maynard e6d34fe35f initialize 2004-01-21 05:02:09 +00:00
Glenn Maynard 58329ee2d8 simplify, speed up f2 2003-12-18 02:57:18 +00:00
Glenn Maynard 5cd3038c4c s/Checkpoint/CHECKPOINT_M/ 2003-11-23 23:48:31 +00:00
Glenn Maynard 232f7b792a Fix "foo.AVI" (uppercase) not working 2003-11-10 14:23:19 +00:00
Glenn Maynard d7cb5aaa22 unneeded 2003-10-20 01:55:03 +00:00
Glenn Maynard 1117b63a09 Fix cached textures being unloaded too soon. 2003-10-09 04:19:11 +00:00
Thad Ward 8f60dc6c13 prevent movies from being handed to RageBitmapTexture.
I don't know why this stopped working. It was broken before my previous commit,
but I went through the cvs history and didn't find any changes that would have
broken this if statement.
2003-09-03 13:47:02 +00:00
Thad Ward 05443292da Consolidate duplicate function 2003-09-03 13:03:41 +00:00
Glenn Maynard 683ff38ab7 don't display warning when reloading 2003-07-10 02:00:48 +00:00
Glenn Maynard 11f78783b3 Add DisableOddDimensionWarning and EnableOddDimensionWarning 2003-07-09 20:24:17 +00:00
Glenn Maynard e1be95ad48 separate movie color depth 2003-07-09 02:28:56 +00:00
Glenn Maynard 4c73bd7b99 use GetTextureDiagnostics 2003-06-22 01:53:36 +00:00
Glenn Maynard 17c3fdb5e2 texture policy priorities 2003-06-12 20:01:30 +00:00
Glenn Maynard f3bf5e7526 fix warning output 2003-06-12 19:41:19 +00:00
Glenn Maynard 48770fb2a0 Make texture policies explicit.
Never keep banner textures loaded.  We'll be using enough memory with
the preloads, and it's not needed.
2003-06-10 19:24:00 +00:00
Glenn Maynard 5d5bc97bc0 Add IsTextureRegistered, RegisterTexture, AdjustTextureID. 2003-06-04 22:32:48 +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
Glenn Maynard fe33dec385 Partial s/GetString/c_str/.
(watch out for PlayerOptions::GetString and SongOptions::GetString)
2003-04-25 00:01:35 +00:00
Glenn Maynard e009925ca3 output texture info 2003-04-24 19:51:27 +00:00
Glenn Maynard 650beb538f use Checkpoint 2003-04-22 05:58:29 +00:00
Glenn Maynard bed43f712b This looks like what this was supposed to be.
With "if( !m_bDelayedDelete || !t->m_bCacheThis )", if !m_bDelayedDelete,
when we preload banners we'll load the texture and then immediately
free it.  This way, we always keep banners around, even if !m_bDelayedDelete.

I'm adding another option to tweak the banner caching.  I like the smoother
banner changes, but I don't care for the very slow opening of groups.

I'm not sure how to handle memory usage.  I have about 14 megs of
banners.  In order to load them all, you just have to open each group
once, and 14 megs of PNG is a lot of memory uncompressed.  Ideal
would be to cache the compressed version, but that'd be a bit of work.
I'll add precache-all-at-load, precache-group and no-precache options
for now.
2003-04-19 23:37:50 +00:00
Glenn Maynard c3dfb3bf3a err, oops 2003-04-19 22:38:10 +00:00
Glenn Maynard 592f829f4e Remove and update old comments.
Remove old function.
Simplify unloading logic by reversing the refcount check.
2003-04-19 22:37:00 +00:00
Chris Danford 1b38fe101c Show banners while MusicWheel is moving fast.
Broke SORT_GROUP into SORT_PREFERRED/SORT_GROUP (like DDREX)
2003-04-19 18:51:13 +00:00
Chris Danford 74d7bcd2bf Revamp texture caching system 2003-04-18 23:55:20 +00:00
Glenn Maynard 13f92ce974 unused function 2003-03-27 08:18:28 +00:00
Glenn Maynard b7fd35d122 make extension matching case-insensitive 2003-03-11 19:07:03 +00:00
Glenn Maynard 13ef4b417a <math.h> 2003-02-20 03:36:57 +00:00
Glenn Maynard 035c89ae14 add RageMovieTexture abstraction
remove "#ifdef LINUX" hacks
2003-02-20 03:35:37 +00:00
Tim Hentenaar 9b0f6baef2 misc. fixes 2003-02-19 23:53:19 +00:00
Tim Hentenaar 4abb3cdbbb *** empty log message *** 2003-02-19 18:13:06 +00:00
Glenn Maynard 42cfd6f98c stdafx -> global 2003-02-16 04:01:45 +00:00
Glenn Maynard 557957433e don't lowercase paths 2003-02-15 00:12:31 +00:00
Glenn Maynard f5fed3e23d fix and simplify 2003-02-12 22:32:04 +00:00
Glenn Maynard 22272aecb0 Fix an indirect movie texture crash (reset PixelStore)
Simplify texture handling: m_ID is const (can't be changed after
load at all); preference overrides are handled in RageTexture;
reloads no longer need a parameter
2003-01-26 00:56:13 +00:00
Glenn Maynard a6b1160c12 fix movie playback 2003-01-25 08:11:03 +00:00
Glenn Maynard 99426e5e7c less logs (knowing which texture we loaded last is useful; knowing
which texture we finished last is probably not)
2003-01-24 02:18:03 +00:00
Glenn Maynard a41cba7deb fix 2003-01-21 10:32:08 +00:00
Glenn Maynard 749b2f36a7 unload unused textures when we invalidate 2003-01-20 22:12:43 +00:00
Glenn Maynard ffc6ae2c37 Simplify splitpath.
Allow a font to have an INI and no pages.
2003-01-16 22:49:22 +00:00
Chris Danford bf5c821afe Added MaxTextureResolution pref 2003-01-11 20:15:00 +00:00
Glenn Maynard 271536078e fix texture searching (don't reuse a texture if it has different attributes,
as intended)
2003-01-09 02:58:16 +00:00
Glenn Maynard f4dbed8221 stl-ize some stuff 2003-01-03 05:29:45 +00:00
Glenn Maynard b97d3f8513 fix up bit depth stuff 2002-12-30 03:35:58 +00:00
Glenn Maynard 11644c2506 add movie extensions 2002-12-30 02:52:05 +00:00
Glenn Maynard fa21e2082a whoops 2002-12-30 02:50:17 +00:00
Glenn Maynard e0b472f33e Textures are now fully ID'd by a single struct. 2002-12-30 02:43:52 +00:00