| 675 | } |
| 676 | |
| 677 | void Texture2D::addSpriteFrameCapInset(SpriteFrame* spritframe, const Rect& capInsets) |
| 678 | { |
| 679 | if (nullptr == _ninePatchInfo) |
| 680 | { |
| 681 | _ninePatchInfo = new NinePatchInfo; |
| 682 | } |
| 683 | if (nullptr == spritframe) |
| 684 | { |
| 685 | _ninePatchInfo->capInsetSize = capInsets; |
| 686 | } |
| 687 | else |
| 688 | { |
| 689 | _ninePatchInfo->capInsetMap[spritframe] = capInsets; |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | bool Texture2D::isContain9PatchInfo() const |
| 694 | { |
no outgoing calls