Oxygine  1
2g game engine
Public Member Functions | List of all members
oxygine::AnimationFrame Class Reference

Public Member Functions

 AnimationFrame (spNativeTexture t)
 
void init (ResAnim *rs, const Diffuse &df, const RectF &srcRect, const RectF &destRect, const Vector2 &frame_size)
 
void init2 (ResAnim *rs, short column, short row, const Diffuse &df, const RectF &srcRect, const RectF &destRect, const Vector2 &frame_size)
 
AnimationFrame getClipped (const RectF &rect) const
 
AnimationFrame getFlipped (bool vertical, bool horizontal) const
 
const Vector2 & getSize () const
 
float getWidth () const
 
float getHeight () const
 
ResAnim * getResAnim () const
 
short getColumn () const
 
short getRow () const
 
const RectF & getSrcRect () const
 
const RectF & getDestRect () const
 
const Diffuse & getDiffuse () const
 
const HitTestData & getHitTestData () const
 
void setSrcRect (const RectF &r)
 
void setDestRect (const RectF &r)
 
void setResAnim (ResAnim *rs)
 
void setDiffuse (const Diffuse &d)
 
void setSize (const Vector2 &size)
 
void setSize (float w, float h)
 
void setHitTestData (const HitTestData &ad)
 
void setRow (int v)
 
void setColumn (int v)
 
void flipX ()
 
void flipY ()
 

Member Function Documentation

◆ getClipped()

AnimationFrame oxygine::AnimationFrame::getClipped ( const RectF &  rect) const

ResAnim should be valid!

◆ getSize()

const Vector2& oxygine::AnimationFrame::getSize ( ) const
inline

Returns size of frame in pixels


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