From 5ec0d7034fe9faec96157d75f3972407e959f87c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 31 Aug 2004 01:37:17 +0000 Subject: [PATCH] update comment --- stepmania/src/RageSurfaceUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSurfaceUtils.cpp b/stepmania/src/RageSurfaceUtils.cpp index e60f61c408..f3131ad8f0 100644 --- a/stepmania/src/RageSurfaceUtils.cpp +++ b/stepmania/src/RageSurfaceUtils.cpp @@ -299,8 +299,10 @@ void RageSurfaceUtils::FixHiddenAlpha( RageSurface *img ) SetAlphaRGB(img, r, g, b); } -/* Find various traits of a surface. Do these all at once, so we only have to - * iterate the surface once. */ +/* Scan the surface to see what level of alpha it uses. This can be used to + * find the best surface format for a texture; eg. a TRAIT_BOOL_TRANSPARENCY or + * TRAIT_NO_TRANSPARENCY surface can use RGB5A1 instead of RGBA4 for greater + * color resolution; a TRAIT_NO_TRANSPARENCY could also use R5G6B5. */ int RageSurfaceUtils::FindSurfaceTraits( const RageSurface *img ) { const int NEEDS_NO_ALPHA=0, NEEDS_BOOL_ALPHA=1, NEEDS_FULL_ALPHA=2;