mirror of https://github.com/axmolengine/axmol.git
Update
This commit is contained in:
parent
722f20c4b6
commit
d0cd640ac8
|
@ -200,7 +200,7 @@ public:
|
|||
*/
|
||||
void setForce2DQueue(bool force2D);
|
||||
|
||||
Vector<Mesh*>& getMeshes() { return _meshes; }
|
||||
const Vector<Mesh*>& getMeshes() const { return _meshes; }
|
||||
const AABB& getAABB(bool world) const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS:
|
||||
|
|
|
@ -600,7 +600,7 @@ std::string TextureCache::getCachedTextureInfo() const
|
|||
return buffer;
|
||||
}
|
||||
|
||||
void TextureCache::renameTextureWithKey(std::string srcName, std::string dstName)
|
||||
void TextureCache::renameTextureWithKey(const std::string srcName, const std::string dstName)
|
||||
{
|
||||
std::string key = srcName;
|
||||
auto it = _textures.find(key);
|
||||
|
|
|
@ -207,7 +207,7 @@ public:
|
|||
void setDirty(bool dirty) { _dirty = dirty; }
|
||||
bool isDirty() const { return _dirty; }
|
||||
|
||||
void renameTextureWithKey(std::string srcName, std::string dstName);
|
||||
void renameTextureWithKey(const std::string srcName, const std::string dstName);
|
||||
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue