add GetFrameCountFromFileName

This commit is contained in:
Glenn Maynard
2003-01-06 11:14:43 +00:00
parent 2c95666ee2
commit 71bd9579e0
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -101,6 +101,13 @@ void RageTexture::GetFrameDimensionsFromFileName( CString sPath, int* piFramesWi
}
int RageTexture::GetFrameCountFromFileName( CString sPath )
{
int wide, high;
GetFrameDimensionsFromFileName(sPath, &wide, &high );
return wide*high;
}
const RectF *RageTexture::GetTextureCoordRect( int frameNo ) const
{
return &m_TextureCoordRects[frameNo];
+1
View File
@@ -91,6 +91,7 @@ public:
const RageTextureID &GetActualID() const { return m_ActualID; }
static void GetFrameDimensionsFromFileName( CString sPath, int* puFramesWide, int* puFramesHigh );
static int GetFrameCountFromFileName( CString sPath );
private:
/* The file we were asked to load. (This is never changed.) */