move a function out of the header

This commit is contained in:
Glenn Maynard
2002-09-07 20:32:50 +00:00
parent f21b2c2e81
commit 9ff8336b7c
2 changed files with 12 additions and 10 deletions
+11 -1
View File
@@ -145,4 +145,14 @@ void RageTextureManager::ReloadAll()
// this is not entirely correct. Hints are lost!
pTexture->Reload( m_iMaxTextureSize, m_iTextureColorDepth, 0 );
}
}
}
void RageTextureManager::SetPrefs( DWORD dwMaxSize, DWORD dwTextureColorDepth )
{
if( dwMaxSize == m_iMaxTextureSize && dwTextureColorDepth == m_iTextureColorDepth )
return;
ASSERT( m_iMaxTextureSize >= 64 );
m_iMaxTextureSize = dwMaxSize;
m_iTextureColorDepth = dwTextureColorDepth;
ReloadAll();
}
+1 -9
View File
@@ -27,15 +27,7 @@ public:
void UnloadTexture( CString sTexturePath );
void ReloadAll();
void SetPrefs( const DWORD dwMaxSize, const DWORD dwTextureColorDepth )
{
if( dwMaxSize == m_iMaxTextureSize && dwTextureColorDepth == m_iTextureColorDepth )
return;
ASSERT( m_iMaxTextureSize >= 64 );
m_iMaxTextureSize = dwMaxSize;
m_iTextureColorDepth = dwTextureColorDepth;
ReloadAll();
};
void SetPrefs( DWORD dwMaxSize, DWORD dwTextureColorDepth );
DWORD GetMaxTextureSize() { return m_iMaxTextureSize; };
DWORD GetTextureColorDepth() { return m_iTextureColorDepth; };