make Sprite internals private

This commit is contained in:
Glenn Maynard
2007-02-13 06:40:14 +00:00
parent 6cb284496c
commit e9a04f81b3
4 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ void GradeDisplay::Update( float fDeltaTime )
int GradeDisplay::GetFrameIndex( PlayerNumber pn, Grade g )
{
if( this->m_pTexture->GetID().filename.find("_blank") != string::npos )
if( this->GetTexture()->GetID().filename.find("_blank") != string::npos )
return 0;
// either 8, or 16 states
@@ -133,7 +133,7 @@ void GradeDisplay::Scroll()
int iFrameNo = GetFrameIndex( m_PlayerNumber, m_Grade );
m_frectDestTexCoords = *m_pTexture->GetTextureCoordRect( iFrameNo );
m_frectDestTexCoords = *GetTexture()->GetTextureCoordRect( iFrameNo );
m_frectStartTexCoords = m_frectDestTexCoords;
m_frectStartTexCoords.top += GRADES_TO_SCROLL * GRADE_FRAME_HEIGHT;
m_frectStartTexCoords.bottom += GRADES_TO_SCROLL * GRADE_FRAME_HEIGHT;