We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Add js-binding and lua-binding document
Add js-binding and lua-binding document
For the constructor bound to js,add comments like these at the end of comment:
/***
** `js ctor
/
For the functions not bound in js or lua(the destructor always not bound),add comments like these at the end of comment:
/*
js NA \*
lua NA / For the rename functions in js or lua,add comments like these at the end of comment: /*- `js renamefunction * @lua renamefunction */
At the same time,add some deprecated functions instead of another functions:
Sprite::isFlipX instead of Sprite::isFlippedX
Sprite::isFlipY instead of Sprite::isFlippedY
camera::getEyeXYZ instead of camera::getEye
camera::getCenterXYZ instead of camera::getCenter
camera::getUpXYZ instead of camera::getUp
camera::setUpXYZ instead of camera::setUp
camera::setEyeXYZ instead of camera::setEye
camera::setCenterXYZ instead of camera::setCenter
Animation: addSpriteFrameWithFileName instead of Animation::addSpriteFrameWithFile
AnimationCache:animationByName instead of Animation::getAnimation
AnimationCache:animationByName::removeAnimationByName instead of removeAnimation
GLProgram::fragmentShaderLog instead of GLProgram::getFragmentShaderLog
GLProgram::programLog instead of GLProgram::getProgramLog
ShaderCache::programForKey instead of ShaderCache::getProgram
For the constructor bound to js,add comments like these at the end of comment:
/** * @js ctor */
For the functions not bound in js or lua(the destructor always not bound),add comments like these at the end of comment:
/** * @js NA * @lua NA */
For the rename functions in js or lua,add comments like these at the end of comment:
/** * @js renamefunction * @lua renamefunction */
At the same time,add some deprecated functions instead of another functions:
Sprite::isFlipX instead of Sprite::isFlippedX
Sprite::isFlipY instead of Sprite::isFlippedY
camera::getEyeXYZ instead of camera::getEye
camera::getCenterXYZ instead of camera::getCenter
camera::getUpXYZ instead of camera::getUp
camera::setUpXYZ instead of camera::setUp
camera::setEyeXYZ instead of camera::setEye
camera::setCenterXYZ instead of camera::setCenter
Animation: addSpriteFrameWithFileName instead of Animation::addSpriteFrameWithFile
AnimationCache:animationByName instead of Animation::getAnimation
AnimationCache:animationByName::removeAnimationByName instead of removeAnimation
GLProgram::fragmentShaderLog instead of GLProgram::getFragmentShaderLog
GLProgram::programLog instead of GLProgram::getProgramLog
ShaderCache::programForKey instead of ShaderCache::getProgram
Status: | Closed | |
---|---|---|
Start date: | 2013-09-10 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | js, lua | |
Target version: | 3.0-alpha0 |