Add comment for new function

This commit is contained in:
XiaoFeng 2015-11-25 11:33:24 +08:00
parent d0cd640ac8
commit 09606e96cd
2 changed files with 20 additions and 0 deletions

View File

@ -200,7 +200,19 @@ public:
*/
void setForce2DQueue(bool force2D);
/**
* Get meshes used in sprite 3d
*/
const Vector<Mesh*>& getMeshes() const { return _meshes; }
/*
* Get AABB
* If the sprite has animation, it can't be calculated accurately,
* because bone can drive the vertices, we just use the origin vertices
* to calculate the AABB.
*
* @param world Use world transform or not.
*/
const AABB& getAABB(bool world) const;
CC_CONSTRUCTOR_ACCESS:

View File

@ -207,6 +207,14 @@ public:
void setDirty(bool dirty) { _dirty = dirty; }
bool isDirty() const { return _dirty; }
/** Reload texuture from a new file.
* This function is mainly for editor, won't suggest use it in game for performance reason.
*
* @param srcName Original texture file name.
* @param dstName New texture file name.
*
* @since v3.10
*/
void renameTextureWithKey(const std::string srcName, const std::string dstName);