Welcome Guest [Log In] [Register]
Welcome to Epee Engine. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Animation; Documnteation on the Animation class
Topic Started: Mar 8 2007, 12:06 PM (363 Views)
Alan
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);

};
Offline Profile Quote Post Goto Top
 
Alan
Administrator
[ *  *  * ]
void JumpToFrame(int _Frame)

Public function of the Animation Class

Description:
Sets the current render frame to _Frame. So that _Frame will be the next frame to be render in the next cycle.


Arguments:


Required:

int _Frame
The frame that the next render cycle should draw


Return Value:
None
Offline Profile Quote Post Goto Top
 
« Previous Topic · Documentation · Next Topic »
Add Reply