| Viewing Single Post From: Animation | |
|---|---|
| Alan | Mar 8 2007, 12:06 PM |
|
Administrator
![]() ![]() ![]() ![]() ![]()
|
Animation: This is object that can animate a image strip. An image strip is a single image where each frame is draw next to each other going from left to right order. example coming soon Inherits from: Image Function List: public: Animation(std::string _FileName,std::string _AnimationName,int _fps,int _x,int _y, int _z,int _AnimStripFrames,int _StartFrame=0,int _Loop=1,bool _Transparency=false,bool _StartNow=true, int _NumberOfRows=1);//:image( _FileName, _AnimationName, _x, _y, _z,Type_Animation,_Transparency) void JumpToFrame(int _Frame); void UpdateTime(); int GetFPS(); void SetFPS(int _fps); void SetClipingBoxForFrame(); void StopAnimation(); void PlayAnimation(); void ResumeAnimation(); void SetLoop(int _Loop); int GetLoop(); int GetCurrentFrame(); bool GetReversPlay(); void SetReversPlay(bool _BackWards); int GetTotalNumberOfFrames(); int GetTotalNumberOfRows(); int GetTotalNumberOfFramesPerRow(); int GetNumberOfTimesPlayed(); void SetFrameEvent(int _frame); int GetFrameEvent(); bool IsPlaying(); virtual void CallBackFromSuper(); private: void CheckForNextFrame(float _time) ; protected: virtual void CreateTexture(SDL_Surface * _baseSurface,SDL_Surface * _image); virtual void SDL_GL_SurfaceToTexture(SDL_Surface * surface); }; |
![]() |
|
| Animation · Documentation | |




![]](http://209.85.48.16/static/1/pip_r.png)

