diff options
Diffstat (limited to 'source/Irrlicht/CGUISpriteBank.h')
-rw-r--r-- | source/Irrlicht/CGUISpriteBank.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/Irrlicht/CGUISpriteBank.h b/source/Irrlicht/CGUISpriteBank.h index affd6bf..5bd115b 100644 --- a/source/Irrlicht/CGUISpriteBank.h +++ b/source/Irrlicht/CGUISpriteBank.h @@ -64,19 +64,7 @@ public: protected:
- inline u32 getFrameNr(u32 index, u32 time, bool loop) const
- {
- u32 frame = 0;
- if (Sprites[index].frameTime && Sprites[index].Frames.size() )
- {
- u32 f = (time / Sprites[index].frameTime);
- if (loop)
- frame = f % Sprites[index].Frames.size();
- else
- frame = (f >= Sprites[index].Frames.size()) ? Sprites[index].Frames.size()-1 : f;
- }
- return frame;
- }
+ bool getFrameNr(u32& frameNr, u32 index, u32 time, bool loop) const;
struct SDrawBatch
{
|