Commit Graph

101 Commits

Author SHA1 Message Date
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
Glenn Maynard 41cd5fd769 cosmetic fix 2003-05-26 01:06:01 +00:00
Chris Danford 7724624323 Make RageBitmapTexture:m_ID private (so it can't be modified) 2003-05-22 06:32:23 +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 3c6f768fd7 use parens instead of brackets 2003-05-05 06:21:01 +00:00
Glenn Maynard 558ef9e275 Override the "size" of a texture:
Foo [res 128x64].png

This can be used to store a texture at a different resolution without
having to change all of the metrics that reference it.

The most obvious use is to lower the resolution of large images.

A less obvious use is to raise the resolution of images.  If an image is
going to be zoomed, it may be useful to store the texture at a higher
resolution than native.

This can be done with metrics, but it's a pain to have to track down
each metric that needs to be changed.  This (should) also work with
fonts (but that needs testing).

Use this sparingly.
2003-05-05 03:14:47 +00:00
Glenn Maynard fd0d78c3e9 cleanup 2003-05-05 02:31:57 +00:00
Chris Danford c8b325d17f messing with dithering again. I won't waste any more time on it! 2003-04-26 10:57:40 +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 60de1a24a1 typo 2003-04-24 19:47:39 +00:00
Glenn Maynard b6069bef29 remove old comments 2003-04-24 19:05:11 +00:00
Chris Danford 4b7d640324 support noteskin-changing attacks
cache trick icons
change AI probability format
2003-04-22 04:54:04 +00:00
Glenn Maynard e2f1e6bda9 cleanup
use function-style or C-style casts, not static_cast; they're identical
and easier to read
2003-04-20 22:08:32 +00:00
Steve Checkoway 86fce28601 fixed conversion warnings 2003-04-20 12:53:38 +00:00
Chris Danford 7f40e36919 eliminate TransitionOniFade 2003-04-13 00:44:50 +00:00
Chris Danford e8418d43bd make GroupList look nicer 2003-04-05 21:47:32 +00:00
Chris Danford 0bb7164b91 worked on Error diffusion dithering algorithm, but it doesn't end up looking much better than OrderedDither 2003-04-05 21:17:51 +00:00
Chris Danford 921119d356 debugging Voodoo3 transparency problem 2003-04-01 07:47:19 +00:00
Glenn Maynard 95b0d3e082 add an assert 2003-03-30 19:36:57 +00:00
Glenn Maynard 609531c1a7 Automatically figure out if we can use 0alpha or 1alpha. I'll remove the
old code once the new code is stable.
2003-03-27 06:01:43 +00:00
Glenn Maynard 92c44716f8 Implement textures that only have an alpha channel.
The most immediate use of this is for the company screen shadow;
it's horribly banded in 16-bit, and this lets us load it as an 8-bit texture,
using half the memory and giving full precision.

This could be automatically used, if all non-transparent pixels in a texture
are #FFFFFF.  (todo)

This can also allow us to have extremely large, memory-compact fonts.
A 1024x1024 layer in ALPHA4 is just 512k, and can store several thousand
16x16 glyphs.  (The only trouble is actually constructing such a font;
doing it by hand in Photoshop isn't a nice option.)
2003-03-24 22:38:34 +00:00
Glenn Maynard 35bf217063 oops; fix hack 2003-03-11 21:05:53 +00:00
Glenn Maynard 3936f52035 fix garbage value when glGetTexLevelParameteriv returns
error
2003-03-11 19:06:11 +00:00
Glenn Maynard b14c6cf846 experiment to try to fix danger background thrashing 2003-03-11 18:52:50 +00:00
Glenn Maynard ed64f269ef Work around GLDirect bug. 2003-03-06 09:26:07 +00:00
Glenn Maynard 719d8f6b4e use GL_COLOR_TABLE_FORMAT instead of
GL_COLOR_TABLE_FORMAT_EXT; it's defined in glext.h

(we could enable this if the imaging subset is defined, too, but checking
for the extension version is probably good enough)
2003-02-20 02:25:10 +00:00
Glenn Maynard 42cfd6f98c stdafx -> global 2003-02-16 04:01:45 +00:00
Glenn Maynard 6b27cd5b58 er, no, this one 2003-02-15 00:15:26 +00:00
Glenn Maynard 3f2c342b26 and another annoying cast 2003-02-15 00:14:28 +00:00
Glenn Maynard f4a14f801e scope GLExt stuff explicitly 2003-02-14 23:29:30 +00:00
Glenn Maynard 2bfe7254fd fix a really obscure artifact 2003-01-26 02:35:55 +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 7344ddf371 add a hack to fix annoying borders 2003-01-23 05:35:21 +00:00
Glenn Maynard f44f8d818c rudimentary paletted texture support and some other optimizations 2003-01-23 04:45:45 +00:00
Glenn Maynard 0fcf0b8ab1 reduce conversions 2003-01-22 04:18:02 +00:00
Glenn Maynard 83062aee55 fix crash 2003-01-01 21:21:44 +00:00
Glenn Maynard 3d8c4d9fc7 fmtTexture associated with format type 2003-01-01 09:07:34 +00:00
Glenn Maynard 773bad00ac use packed pixels (like we were with d3d) 2002-12-30 04:46:56 +00:00
Glenn Maynard 77e647d7a0 move image creation into a function 2002-12-30 04:03:49 +00:00
Glenn Maynard b97d3f8513 fix up bit depth stuff 2002-12-30 03:35:58 +00:00
Glenn Maynard e0b472f33e Textures are now fully ID'd by a single struct. 2002-12-30 02:43:52 +00:00
Glenn Maynard 49f05c9ab8 s/throw RageException/RageException::Throw/ 2002-12-21 19:34:02 +00:00
Glenn Maynard b3508e02cf move power_of_two
unset pixelstore settings when we're done
2002-12-20 06:28:22 +00:00
Glenn Maynard 628b0a36a0 fix stretch 2002-11-21 22:34:37 +00:00
Glenn Maynard 0812be2332 for now, throw on failed image load 2002-11-21 00:54:28 +00:00
Glenn Maynard 48eee90ab2 Reenable and move iterative filtering into the zoom proper. 2002-11-21 00:48:15 +00:00
Glenn Maynard dbb6f0416c fix not dithering in 32bpp 2002-11-20 01:25:40 +00:00
Glenn Maynard 197addc73f use texture prefs for bit depth directly 2002-11-15 23:45:48 +00:00
Chris Danford 487b4e9527 Readded texture stretch, texture dither, and 16 bit textures. 2002-11-14 01:26:19 +00:00
Glenn Maynard 892fcb47dc impement Invalidate() 2002-11-12 09:23:15 +00:00