add prefs: ForceMipMaps, AnisotropicFiltering

This commit is contained in:
Chris Danford
2004-05-18 08:43:21 +00:00
parent 3ef57a44c7
commit 7ea35ebb25
6 changed files with 26 additions and 10 deletions
+3 -3
View File
@@ -119,6 +119,9 @@ void RageBitmapTexture::Create()
if( actualID.iGrayscaleBits != -1 && img->format->BitsPerPixel == 8 )
actualID.iGrayscaleBits = -1;
if( PREFSMAN->m_bForceMipMaps )
actualID.bMipMaps = true;
/* Cap the max texture size to the hardware max. */
actualID.iMaxSize = min( actualID.iMaxSize, DISPLAY->GetMaxTextureSize() );
@@ -130,9 +133,6 @@ void RageBitmapTexture::Create()
m_iImageWidth = min( m_iSourceWidth, actualID.iMaxSize );
m_iImageHeight = min( m_iSourceHeight, actualID.iMaxSize );
if( PREFSMAN->m_bHalveTextureHeight )
m_iImageHeight /= 2;
/* Texture dimensions need to be a power of two; jump to the next. */
m_iTextureWidth = power_of_two(m_iImageWidth);
m_iTextureHeight = power_of_two(m_iImageHeight);