add GetFrameCountFromFileName
This commit is contained in:
@@ -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
|
const RectF *RageTexture::GetTextureCoordRect( int frameNo ) const
|
||||||
{
|
{
|
||||||
return &m_TextureCoordRects[frameNo];
|
return &m_TextureCoordRects[frameNo];
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ public:
|
|||||||
const RageTextureID &GetActualID() const { return m_ActualID; }
|
const RageTextureID &GetActualID() const { return m_ActualID; }
|
||||||
|
|
||||||
static void GetFrameDimensionsFromFileName( CString sPath, int* puFramesWide, int* puFramesHigh );
|
static void GetFrameDimensionsFromFileName( CString sPath, int* puFramesWide, int* puFramesHigh );
|
||||||
|
static int GetFrameCountFromFileName( CString sPath );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* The file we were asked to load. (This is never changed.) */
|
/* The file we were asked to load. (This is never changed.) */
|
||||||
|
|||||||
Reference in New Issue
Block a user