mirror of https://github.com/axmolengine/axmol.git
fix typos and grammar in comments (#18853)
This commit is contained in:
parent
eb87dec447
commit
c84c5761a1
|
@ -332,7 +332,7 @@ void Sequence::startWithTarget(Node *target)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (_duration > FLT_EPSILON)
|
if (_duration > FLT_EPSILON)
|
||||||
// fix #14936 - FLT_EPSILON (instant action) / very fast duration (0.001) leads to worng split, that leads to call instant action few times
|
// fix #14936 - FLT_EPSILON (instant action) / very fast duration (0.001) leads to wrong split, that leads to call instant action few times
|
||||||
_split = _actions[0]->getDuration() > FLT_EPSILON ? _actions[0]->getDuration() / _duration : 0;
|
_split = _actions[0]->getDuration() > FLT_EPSILON ? _actions[0]->getDuration() / _duration : 0;
|
||||||
|
|
||||||
ActionInterval::startWithTarget(target);
|
ActionInterval::startWithTarget(target);
|
||||||
|
|
|
@ -933,7 +933,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts the children array once before drawing, instead of every time when a child is added or reordered.
|
* Sorts the children array once before drawing, instead of every time when a child is added or reordered.
|
||||||
* This approach can improves the performance massively.
|
* This approach can improve the performance massively.
|
||||||
* @note Don't call this manually unless a child added needs to be removed in the same frame.
|
* @note Don't call this manually unless a child added needs to be removed in the same frame.
|
||||||
*/
|
*/
|
||||||
virtual void sortAllChildren();
|
virtual void sortAllChildren();
|
||||||
|
|
|
@ -61,7 +61,7 @@ typedef struct PhysicsRayCastInfo
|
||||||
Vec2 contact;
|
Vec2 contact;
|
||||||
Vec2 normal;
|
Vec2 normal;
|
||||||
|
|
||||||
// FIXME: correct thing to do is use `cpFlaot` instead of float.
|
// FIXME: correct thing to do is use `cpFloat` instead of float.
|
||||||
// but in order to do so, we should include "chipmunk_types.h"
|
// but in order to do so, we should include "chipmunk_types.h"
|
||||||
// in Chipmunk v7.0, chipmunk_types includes all the mac types that
|
// in Chipmunk v7.0, chipmunk_types includes all the mac types that
|
||||||
// conflicts with cocos2d Size, Point,... etc types. And all the CocosStudio
|
// conflicts with cocos2d Size, Point,... etc types. And all the CocosStudio
|
||||||
|
|
|
@ -35,7 +35,7 @@ THE SOFTWARE.
|
||||||
#include "platform/winrt/WICImageLoader-winrt.h"
|
#include "platform/winrt/WICImageLoader-winrt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// premultiply alpha, or the effect will wrong when want to use other pixel format in Texture2D,
|
// premultiply alpha, or the effect will be wrong when using other pixel formats in Texture2D,
|
||||||
// such as RGB888, RGB5A1
|
// such as RGB888, RGB5A1
|
||||||
#define CC_RGB_PREMULTIPLY_ALPHA(vr, vg, vb, va) \
|
#define CC_RGB_PREMULTIPLY_ALPHA(vr, vg, vb, va) \
|
||||||
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \
|
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \
|
||||||
|
|
|
@ -52,7 +52,7 @@ NS_CC_BEGIN
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* From version 3.0, TextureCache will never to treated as a singleton, it will be owned by director.
|
* From version 3.0, TextureCache will never be treated as a singleton, it will be owned by director.
|
||||||
* All call by TextureCache::getInstance() should be replaced by Director::getInstance()->getTextureCache().
|
* All call by TextureCache::getInstance() should be replaced by Director::getInstance()->getTextureCache().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue