move a function out of the header
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user