mirror of https://github.com/axmolengine/axmol.git
Add comment for new function
This commit is contained in:
parent
d0cd640ac8
commit
09606e96cd
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue