Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
Animation Class Reference

#include <EEAnimation.h>

Inheritance diagram for Animation:
Inheritance graph
Collaboration diagram for Animation:
Collaboration graph

Public Member Functions

 Animation (const std::string &_FileName, const 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)
void JumpToFrame (int _Frame)
void UpdateTime ()
int GetFPS ()
void SetFPS (int _fps)
void SetClipingBoxForFrame ()
void StopAnimation ()
void PlayAnimation ()
void PlayAnimation (int _frame)
void ResumeAnimation ()
void SetLoop (int _Loop)
int GetLoop ()
int GetCurrentFrame ()
bool GetReversPlay ()
void SetReversPlay (bool _BackWards)
unsigned int GetTotalNumberOfFrames ()
int GetTotalNumberOfRows ()
int GetTotalNumberOfFramesPerRow ()
int GetNumberOfTimesPlayed ()
void SetFrameEvent (int _frame, int _eventID)
int GetFrameEvent ()
int GetFrameEventID ()
bool IsPlaying ()
virtual SDL_Surface * LoadSurface ()
virtual void UnLoadTexture ()
virtual bool IsLoaded ()
virtual void Init ()
 ~Animation ()
virtual void LoadTexture ()
- Public Member Functions inherited from image
 image (const std::string &_FileNameImage, const std::string &_NameImageHere, int _x, int _y, int _z, bool _Transparency=false)
std::string GetFileName ()
void SetClippingRect (int _x, int _y, int _w, int _h)
bool GetClip ()
int GetClippingX ()
int GetClippingY ()
int GetClippingW ()
int GetClippingH ()
void SetTransparency (bool _Transparency)
bool GetTransparency ()
- Public Member Functions inherited from EEWidget
 EEWidget (std::string _NameMain, int _TypeMain)
 EEWidget (std::string _NameMain, int _TypeMain, int _x, int _y, int _z)
virtual ~EEWidget ()
virtual void UnloadSurface ()
int NearestPowerOfTwo (int i)
void SetLocation (int _x, int _y)
int GetLocationX ()
int GetLocationY ()
std::string GetName ()
int GetLocationZ ()
virtual void SetHeightWidth (unsigned int _Height, unsigned int _Width)
unsigned int GetHeight ()
unsigned int GetWidth ()
bool SetDraw (bool _Draw)
bool GetDraw ()
int GetType ()
bool SetScalingFactor (double _ScalingX, double _ScalingY)
bool SetScalingFactorY (double _ScalingY)
bool SetScalingFactorX (double _ScalingX)
double GetScalingFactorX ()
double GetScalingFactorY ()
bool SetRotation (double _Degrees)
double GetRotation ()
bool SetAntiAliased (bool _AntiAliased)
bool GetAntiAliased ()
int GetCurrentVectorPostion ()
virtual EEWidgetWasClicked (int _mouselocationX, int _mouselocationY)
void DisableClick ()
void EnableClick ()
bool GetIsClickEnabled ()
void DisableAndTurnOffDraw ()
void EnableAndTurnOnDraw ()
void SetDontMoveOnClick (bool _flag)
bool GetDontMoveOnClick ()
bool WasLastSprocketClicked ()
void ShowOutLine ()
void HideOutLine ()
bool GetOutLine ()

Protected Member Functions

virtual void CreateTexture (SDL_Surface *_baseSurface, SDL_Surface *_image)
virtual void SDL_GL_SurfaceToTexture (SDL_Surface *surface)
virtual void Render ()
- Protected Member Functions inherited from image
 image (const std::string &_FileNameImage, const std::string &_NameImageHere, int _x, int _y, int _z, int _type, bool _Transparency=false)
 image ()
 image (const std::string &_FileNameImage)
SDL_Rect * GetClippingRect ()
SDL_Rect * GetOrignalRect ()
- Protected Member Functions inherited from EEWidget
 EEWidget ()
bool GetBlit ()
virtual SDL_Surface * SetSurface ()
virtual SDL_Surface * GetEEWidgeturface ()
SDL_Rect * GetRect ()
bool SetCurrentArrayPostion (int _newPostion)
void SetType (int _type)
void SetLocationZ (int _z)
void SetBlit (bool _blit)
virtual void SetModifySurFace (SDL_Surface *_ModifySurface)
SDL_Surface * GetModifySurFace ()

Additional Inherited Members

- Protected Attributes inherited from image
SDL_Rect ClipingRect
- Protected Attributes inherited from EEWidget
int m_iz
std::string m_sName
int m_iSprocketType
bool m_bDraw
int m_iCurrentPostion
bool m_iAntiAliased
bool m_bblit
bool m_bShowSurfaceOutline
double m_iRotation
double m_iScaleX
double m_iScaleY
bool m_bactive
bool m_bDontMoveButton
bool m_bCurrentlySelected
SDL_Rect m_cBox
unsigned int m_iTextureH
unsigned int m_iTextureW
SDL_Surface * m_porignalSurface
SDL_Surface * m_pModifySurface
GLuint m_GLTexture

Constructor & Destructor Documentation

Animation::Animation ( const std::string &  _FileName,
const 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 
Animation::~Animation ( )

Member Function Documentation

void Animation::CreateTexture ( SDL_Surface *  _baseSurface,
SDL_Surface *  _image 

Reimplemented from EEWidget.

int Animation::GetCurrentFrame ( )
int Animation::GetFPS ( )
int Animation::GetFrameEvent ( )
int Animation::GetFrameEventID ( )
int Animation::GetLoop ( )
int Animation::GetNumberOfTimesPlayed ( )
bool Animation::GetReversPlay ( )
unsigned int Animation::GetTotalNumberOfFrames ( )
int Animation::GetTotalNumberOfFramesPerRow ( )
int Animation::GetTotalNumberOfRows ( )
void Animation::Init ( )

Reimplemented from EEWidget.

bool Animation::IsLoaded ( )

Reimplemented from EEWidget.

bool Animation::IsPlaying ( )
void Animation::JumpToFrame ( int  _Frame)
SDL_Surface * Animation::LoadSurface ( )

Reimplemented from image.

void Animation::LoadTexture ( )

Reimplemented from image.

void Animation::PlayAnimation ( )
void Animation::PlayAnimation ( int  _frame)
void Animation::Render ( )

Reimplemented from EEWidget.

void Animation::ResumeAnimation ( )
void Animation::SDL_GL_SurfaceToTexture ( SDL_Surface *  surface)

Reimplemented from EEWidget.

void Animation::SetClipingBoxForFrame ( )
void Animation::SetFPS ( int  _fps)
void Animation::SetFrameEvent ( int  _frame,
int  _eventID 
void Animation::SetLoop ( int  _Loop)
void Animation::SetReversPlay ( bool  _BackWards)
void Animation::StopAnimation ( )
void Animation::UnLoadTexture ( )

Reimplemented from EEWidget.

void Animation::UpdateTime ( )

The documentation for this class was generated from the following files: