22#include <kiwano/core/Common.h>
23#include <kiwano/math/Math.h>
24#include <kiwano/render/Texture.h>
87 const Rect& GetCropRect()
const;
100 void SetCropRect(
const Rect& crop_rect);
114 Vector<SpriteFrame> Split(
int cols,
int rows,
int max_num = -1,
float padding_x = 0,
float padding_y = 0);
123 return texture_ && texture_->IsValid();
138 return crop_rect_.GetSize();
引用计数智能指针
Definition: RefBasePtr.hpp:35
资源
Definition: Resource.h:41
精灵帧
Definition: SpriteFrame.h:34
RefPtr< Texture > GetTexture() const
获取纹理
Definition: SpriteFrame.h:131
Size GetSize() const
获取精灵帧大小
Definition: SpriteFrame.h:136
const Rect & GetCropRect() const
获取裁剪矩形
Definition: SpriteFrame.h:126
bool IsValid() const
是否有效
Definition: SpriteFrame.h:121