Animation * CreateAnimation(
std::string _fileName ,
std::string _Name,
int _x,
int _y,
int _z,
int _NumberOfFrames,
int _fps,
int _StartFrame,
int _Loop,
int _NumberOfRowsOfFrames,
bool _Transparency,
bool _StartNow,
std::string _AddtoCurrentRenderlist
)
Public function of the Epee Engine Class
Description:
Creates ananimation and adds it to the rendable list _AddtoCurrentRenderlist
Arguments:
Required:
std::string _fileName
Name of file to load
std::string _Name
Name of animation
int _x
x location of the animation
int _y
y location of the animation
int _z
z location of the animation
int _NumberOfFrames
Number of frames per a row
int _fps
Frames per second to play the animation at
Optional:
int _StartFrame
Frame to start the animation at
Defaults to 0
int _Loop
Number of times to play the animation
passing in zero makes the animation loop forever
Defaults to 1
int _NumberOfRowsOfFrames
number of rows of frames the animation is
Defaults to 1
bool _Transparency
does not draw pixel that matches the color of the top left pixel
defaults to false
bool _StartNow
if this is true the animation starts playing after being created
defaults to true
std::string _AddtoCurrentRenderlist
render list to add the animation to
defaults to "Current" the current active render list
Return Value:
if successful returns a pointer to the newly created animation, otherwise returns a NULL pointer