From d9027152694df8a9fb9cf545cd5c4b2282ee9ff9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Oct 2003 03:06:10 +0000 Subject: [PATCH] add Supports4BitPalettes --- stepmania/src/RageDisplay.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/RageDisplay.h b/stepmania/src/RageDisplay.h index b57b0844a7..e33cf9b1f9 100644 --- a/stepmania/src/RageDisplay.h +++ b/stepmania/src/RageDisplay.h @@ -140,6 +140,13 @@ public: virtual void SetBlendMode( BlendMode mode ) = 0; virtual bool SupportsTextureFormat( PixelFormat pixfmt ) = 0; + + /* This really indicates whether 4-bit palettes will actually use less memory + * than 8-bit ones. Note that 4-bit palettes are uploaded as 8-bit paletted + * surfaces with color index values in the range 0..15; not as 4-bit "packed + * indexes". */ + virtual bool Supports4BitPalettes() { return false; } + /* return 0 if failed or internal texture resource handle * (unsigned in OpenGL, texture pointer in D3D) */ virtual unsigned CreateTexture(