Merge pull request #67 from chuanweizhang2013/v3luaruntime

update v3
This commit is contained in:
cocoscodeide 2014-09-01 14:48:07 +08:00
commit 4acb853fc1
586 changed files with 6686 additions and 11471 deletions

View File

@ -3357,13 +3357,6 @@
name = "text-input-node";
sourceTree = "<group>";
};
1A5702CC180BCE410088DEC7 /* textures */ = {
isa = PBXGroup;
children = (
);
name = textures;
sourceTree = "<group>";
};
1A5702DF180BCE610088DEC7 /* tilemap-parallax-nodes */ = {
isa = PBXGroup;
children = (
@ -4499,7 +4492,6 @@
1A570275180BCC840088DEC7 /* sprite-nodes */,
1A57029A180BCD4F0088DEC7 /* support */,
1A5702BC180BCE0A0088DEC7 /* text-input-node */,
1A5702CC180BCE410088DEC7 /* textures */,
1A5702DF180BCE610088DEC7 /* tilemap-parallax-nodes */,
);
name = 2d;

View File

@ -115,8 +115,7 @@ void ActionCamera::updateTransform()
mv = mv * t;
}
// XXX FIXME TODO
// Using the AdditionalTransform is a complete hack.
// FIXME: Using the AdditionalTransform is a complete hack.
// This should be done by multipliying the lookup-Matrix with the Node's MV matrix
// And then setting the result as the new MV matrix
// But that operation needs to be done after all the 'updates'.

View File

@ -424,7 +424,7 @@ CallFuncN * CallFuncN::create(const std::function<void(Node*)> &func)
return nullptr;
}
// XXX deprecated
// FIXME: deprecated
CallFuncN * CallFuncN::create(Ref* selectorTarget, SEL_CallFuncN selector)
{
CallFuncN *ret = new (std::nothrow) CallFuncN();

View File

@ -335,7 +335,7 @@ void Sequence::update(float t)
else if(found==0 && _last==1 )
{
// Reverse mode ?
// XXX: Bug. this case doesn't contemplate when _last==-1, found=0 and in "reverse mode"
// FIXME: Bug. this case doesn't contemplate when _last==-1, found=0 and in "reverse mode"
// since it will require a hack to know if an action is on reverse mode or not.
// "step" should be overriden, and the "reverseMode" value propagated to inner Sequences.
_actions[1]->update(0);
@ -981,7 +981,7 @@ void RotateBy::startWithTarget(Node *target)
void RotateBy::update(float time)
{
// XXX: shall I add % 360
// FIXME: shall I add % 360
if (_target)
{
if(_is3D)
@ -2183,7 +2183,7 @@ void ReverseTime::update(float time)
ReverseTime* ReverseTime::reverse() const
{
// XXX: This looks like a bug
// FIXME: This looks like a bug
return (ReverseTime*)_other->clone();
}

View File

@ -317,7 +317,7 @@ void ActionManager::removeAllActionsByTag(int tag, Node *target)
// get
// XXX: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
// FIXME: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
// and, it is not possible to get the address of a reference
Action* ActionManager::getActionByTag(int tag, const Node *target) const
{
@ -351,7 +351,7 @@ Action* ActionManager::getActionByTag(int tag, const Node *target) const
return nullptr;
}
// XXX: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
// FIXME: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
// and, it is not possible to get the address of a reference
ssize_t ActionManager::getNumberOfRunningActionsInTarget(const Node *target) const
{

View File

@ -25,10 +25,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "2d/CCAnimation.h"
#include "2d/CCSpriteFrame.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCTexture2D.h"
#include "base/ccMacros.h"
#include "base/CCDirector.h"
NS_CC_BEGIN

View File

@ -30,9 +30,8 @@ THE SOFTWARE.
#include "base/CCPlatformConfig.h"
#include "base/CCRef.h"
#include "base/CCValue.h"
#include "math/CCGeometry.h"
#include "2d/CCSpriteFrame.h"
#include "base/CCVector.h"
#include "2d/CCSpriteFrame.h"
#include <string>

View File

@ -25,12 +25,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "2d/CCAnimationCache.h"
#include "base/ccMacros.h"
#include "2d/CCAnimation.h"
#include "2d/CCSpriteFrame.h"
#include "2d/CCSpriteFrameCache.h"
#include "platform/CCFileUtils.h"
#include "deprecated/CCString.h"
using namespace std;

View File

@ -26,14 +26,11 @@
*/
#include "2d/CCClippingNode.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCGLProgramCache.h"
#include "2d/CCDrawingPrimitives.h"
#include "renderer/CCGLProgramCache.h"
#include "renderer/CCRenderer.h"
#include "base/CCDirector.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCGroupCommand.h"
#include "renderer/CCCustomCommand.h"
NS_CC_BEGIN
@ -248,7 +245,7 @@ void ClippingNode::visit(Renderer *renderer, const Mat4 &parentTransform, uint32
program->use();
program->setUniformLocationWith1f(alphaValueLocation, _alphaThreshold);
// we need to recursively apply this shader to all the nodes in the stencil node
// XXX: we should have a way to apply shader to all nodes without having to do this
// FIXME: we should have a way to apply shader to all nodes without having to do this
setProgram(_stencil, program);
#endif
@ -438,7 +435,7 @@ void ClippingNode::onAfterDrawStencil()
glDisable(GL_ALPHA_TEST);
}
#else
// XXX: we need to find a way to restore the shaders of the stencil node and its childs
// FIXME: we need to find a way to restore the shaders of the stencil node and its childs
#endif
}

View File

@ -23,7 +23,6 @@ THE SOFTWARE.
****************************************************************************/
#include "2d/CCComponent.h"
#include "base/CCScriptSupport.h"
NS_CC_BEGIN

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "2d/CCComponentContainer.h"
#include "2d/CCComponent.h"
#include "base/CCDirector.h"
#include "2d/CCNode.h"
NS_CC_BEGIN

View File

@ -27,6 +27,7 @@
#include "base/CCConfiguration.h"
#include "renderer/CCRenderer.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgramState.h"
#include "base/CCDirector.h"
#include "base/CCEventListenerCustom.h"
#include "base/CCEventDispatcher.h"

View File

@ -157,7 +157,7 @@ void drawPoints( const Vec2 *points, unsigned int numberOfPoints )
s_shader->setUniformLocationWith4fv(s_colorLocation, (GLfloat*) &s_color.r, 1);
s_shader->setUniformLocationWith1f(s_pointSizeLocation, s_pointSize);
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
Vec2* newPoints = new (std::nothrow) Vec2[numberOfPoints];
// iPhone and 32-bit machines optimization
@ -268,7 +268,7 @@ void drawPoly(const Vec2 *poli, unsigned int numberOfPoints, bool closePolygon)
else
{
// Mac on 64-bit
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
Vec2* newPoli = new (std::nothrow) Vec2[numberOfPoints];
for( unsigned int i=0; i<numberOfPoints;i++) {
newPoli[i].x = poli[i].x;
@ -302,7 +302,7 @@ void drawSolidPoly(const Vec2 *poli, unsigned int numberOfPoints, Color4F color)
GL::enableVertexAttribs( GL::VERTEX_ATTRIB_FLAG_POSITION );
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
Vec2* newPoli = new (std::nothrow) Vec2[numberOfPoints];
// iPhone and 32-bit machines optimization
@ -568,7 +568,7 @@ void setPointSize( GLfloat pointSize )
{
s_pointSize = pointSize * CC_CONTENT_SCALE_FACTOR();
//TODO :glPointSize( pointSize );
// TODO: glPointSize( pointSize );
}

View File

@ -34,20 +34,16 @@ THE SOFTWARE.
It was rewritten again, and only a small part of the original HK ideas/code remains in this implementation
*/
#include "CCFastTMXLayer.h"
#include "CCTMXXMLParser.h"
#include "CCFastTMXTiledMap.h"
#include "2d/CCFastTMXLayer.h"
#include "2d/CCFastTMXTiledMap.h"
#include "2d/CCSprite.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgramCache.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgram.h"
#include "base/CCDirector.h"
#include "base/CCConfiguration.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCVertexIndexBuffer.h"
#include "base/CCDirector.h"
#include "deprecated/CCString.h"
#include "renderer/CCGLProgramStateCache.h"
#include <algorithm>
NS_CC_BEGIN
namespace experimental {
@ -491,7 +487,7 @@ void TMXLayer::updateTotalQuads()
if(tileGID & kTMXTileDiagonalFlag)
{
// XXX: not working correcly
// FIXME: not working correcly
quad.bl.vertices.x = left;
quad.bl.vertices.y = bottom;
quad.bl.vertices.z = z;

View File

@ -27,15 +27,12 @@ THE SOFTWARE.
#ifndef __CC_FAST_TMX_LAYER_H__
#define __CC_FAST_TMX_LAYER_H__
#include "CCTMXObjectGroup.h"
#include "CCTMXXMLParser.h"
#include "CCNode.h"
#include "renderer/CCCustomCommand.h"
#include "renderer/CCQuadCommand.h"
#include "renderer/CCPrimitiveCommand.h"
#include <map>
#include <unordered_map>
#include "2d/CCNode.h"
#include "2d/CCTMXXMLParser.h"
#include "renderer/CCPrimitiveCommand.h"
#include "base/CCMap.h"
NS_CC_BEGIN

View File

@ -24,13 +24,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCFastTMXTiledMap.h"
#include <algorithm>
#include "CCTMXXMLParser.h"
#include "CCFastTMXLayer.h"
#include "CCSprite.h"
#include "2d/CCFastTMXTiledMap.h"
#include "2d/CCFastTMXLayer.h"
#include "deprecated/CCString.h"
NS_CC_BEGIN
@ -138,7 +133,7 @@ TMXTilesetInfo * TMXTiledMap::tilesetForLayer(TMXLayerInfo *layerInfo, TMXMapInf
// gid = CFSwapInt32( gid );
/* We support little endian.*/
// XXX: gid == 0 --> empty tile
// FIXME: gid == 0 --> empty tile
if( gid != 0 )
{
// Optimization: quick return

View File

@ -32,7 +32,6 @@ THE SOFTWARE.
NS_CC_BEGIN
class TMXObjectGroup;
class TMXLayerInfo;
class TMXTilesetInfo;
class TMXMapInfo;

View File

@ -24,6 +24,7 @@
****************************************************************************/
#include "2d/CCFontFNT.h"
#include <set>
#include "base/uthash.h"
#include "2d/CCFontAtlas.h"
#include "platform/CCFileUtils.h"
@ -102,7 +103,7 @@ typedef struct _KerningHashElement
*/
class CC_DLL BMFontConfiguration : public Ref
{
// XXX: Creating a public interface so that the bitmapFontArray[] is accessible
// FIXME: Creating a public interface so that the bitmapFontArray[] is accessible
public://@public
// BMFont definitions
tFontDefHashElement *_fontDefDictionary;
@ -313,7 +314,7 @@ std::set<unsigned int>* BMFontConfiguration::parseConfigFile(const std::string&
if(line.substr(0,strlen("info face")) == "info face")
{
// XXX: info parsing is incomplete
// FIXME: info parsing is incomplete
// Not needed for the Hiero editors, but needed for the AngelCode editor
// [self parseInfoArguments:line];
this->parseInfoArguments(line);

View File

@ -68,7 +68,7 @@ void Grabber::beforeRender(Texture2D *texture)
// save clear color
glGetFloatv(GL_COLOR_CLEAR_VALUE, _oldClearColor);
// BUG XXX: doesn't work with RGB565.
// FIXME: doesn't work with RGB565.
glClearColor(0, 0, 0, 0);

View File

@ -151,7 +151,7 @@ GridBase::~GridBase(void)
{
CCLOGINFO("deallocing GridBase: %p", this);
//TODO: ? why 2.0 comments this line setActive(false);
//TODO: ? why 2.0 comments this line: setActive(false);
CC_SAFE_RELEASE(_texture);
CC_SAFE_RELEASE(_grabber);
}
@ -220,7 +220,7 @@ void GridBase::afterDraw(cocos2d::Node *target)
// Vec2 offset = target->getAnchorPointInPoints();
//
// //
// // XXX: Camera should be applied in the AnchorPoint
// // FIXME: Camera should be applied in the AnchorPoint
// //
// kmGLTranslatef(offset.x, offset.y, 0);
// target->getCamera()->locate();
@ -230,8 +230,8 @@ void GridBase::afterDraw(cocos2d::Node *target)
GL::bindTexture2D(_texture->getName());
// restore projection for default FBO .fixed bug #543 #544
//TODO: Director::getInstance()->setProjection(Director::getInstance()->getProjection());
//TODO: Director::getInstance()->applyOrientation();
//TODO: Director::getInstance()->setProjection(Director::getInstance()->getProjection());
//TODO: Director::getInstance()->applyOrientation();
blit();
}

View File

@ -772,7 +772,7 @@ void Label::enableShadow(const Color4B& shadowColor /* = Color4B::BLACK */,const
auto contentScaleFactor = CC_CONTENT_SCALE_FACTOR();
_shadowOffset.width = offset.width * contentScaleFactor;
_shadowOffset.height = offset.height * contentScaleFactor;
//todo:support blur for shadow
//TODO: support blur for shadow
_shadowBlurRadius = 0;
if (_textSprite && _shadowNode)

View File

@ -31,6 +31,7 @@ THE SOFTWARE.
#include "platform/CCDevice.h"
#include "renderer/CCRenderer.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgramState.h"
#include "base/CCDirector.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventListenerTouch.h"

View File

@ -28,12 +28,10 @@ THE SOFTWARE.
#include "2d/CCMenuItem.h"
#include "2d/CCActionInterval.h"
#include "2d/CCSprite.h"
#include "CCLabelAtlas.h"
#include "2d/CCLabelAtlas.h"
#include "2d/CCLabel.h"
#include "base/CCScriptSupport.h"
#include "deprecated/CCString.h"
#include <stdarg.h>
#include <cstring>
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@ -63,7 +61,7 @@ MenuItem* MenuItem::create()
return MenuItem::create((const ccMenuCallback&)nullptr);
}
// XXX deprecated
// FIXME: deprecated
MenuItem* MenuItem::create(Ref *target, SEL_MenuHandler selector)
{
MenuItem *ret = new (std::nothrow) MenuItem();
@ -80,7 +78,7 @@ MenuItem* MenuItem::create( const ccMenuCallback& callback)
return ret;
}
// XXX deprecated
// FIXME: deprecated
bool MenuItem::initWithTarget(cocos2d::Ref *target, SEL_MenuHandler selector )
{
_target = target;
@ -153,7 +151,7 @@ bool MenuItem::isSelected() const
return _selected;
}
// XXX deprecated
// FIXME: deprecated
void MenuItem::setTarget(Ref *target, SEL_MenuHandler selector)
{
_target = target;
@ -192,7 +190,7 @@ void MenuItemLabel::setLabel(Node* var)
_label = var;
}
// XXX: deprecated
// FIXME:: deprecated
MenuItemLabel * MenuItemLabel::create(Node*label, Ref* target, SEL_MenuHandler selector)
{
MenuItemLabel *ret = new (std::nothrow) MenuItemLabel();
@ -217,7 +215,7 @@ MenuItemLabel* MenuItemLabel::create(Node *label)
return ret;
}
// XXX: deprecated
// FIXME:: deprecated
bool MenuItemLabel::initWithLabel(Node* label, Ref* target, SEL_MenuHandler selector)
{
_target = target;
@ -322,7 +320,7 @@ MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const st
return MenuItemAtlasFont::create(value, charMapFile, itemWidth, itemHeight, startCharMap, (const ccMenuCallback&)nullptr);
}
// XXX: deprecated
// FIXME:: deprecated
MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const std::string& charMapFile, int itemWidth, int itemHeight, char startCharMap, Ref* target, SEL_MenuHandler selector)
{
MenuItemAtlasFont *ret = new (std::nothrow) MenuItemAtlasFont();
@ -339,7 +337,7 @@ MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const st
return ret;
}
// XXX: deprecated
// FIXME:: deprecated
bool MenuItemAtlasFont::initWithString(const std::string& value, const std::string& charMapFile, int itemWidth, int itemHeight, char startCharMap, Ref* target, SEL_MenuHandler selector)
{
_target = target;
@ -388,7 +386,7 @@ const std::string& MenuItemFont::getFontName()
return _globalFontName;
}
// XXX: deprecated
// FIXME:: deprecated
MenuItemFont * MenuItemFont::create(const std::string& value, Ref* target, SEL_MenuHandler selector)
{
MenuItemFont *ret = new (std::nothrow) MenuItemFont();
@ -423,7 +421,7 @@ MenuItemFont::~MenuItemFont()
CCLOGINFO("In the destructor of MenuItemFont (%p).", this);
}
// XXX: deprecated
// FIXME:: deprecated
bool MenuItemFont::initWithString(const std::string& value, Ref* target, SEL_MenuHandler selector)
{
CCASSERT( !value.empty(), "Value length must be greater than 0");
@ -546,7 +544,7 @@ MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite
return MenuItemSprite::create(normalSprite, selectedSprite, disabledSprite, (const ccMenuCallback&)nullptr);
}
// XXX deprecated
// FIXME: deprecated
MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite, Ref* target, SEL_MenuHandler selector)
{
return MenuItemSprite::create(normalSprite, selectedSprite, nullptr, target, selector);
@ -557,7 +555,7 @@ MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite
return MenuItemSprite::create(normalSprite, selectedSprite, nullptr, callback);
}
// XXX deprecated
// FIXME: deprecated
MenuItemSprite * MenuItemSprite::create(Node *normalSprite, Node *selectedSprite, Node *disabledSprite, Ref *target, SEL_MenuHandler selector)
{
MenuItemSprite *ret = new (std::nothrow) MenuItemSprite();
@ -574,7 +572,7 @@ MenuItemSprite * MenuItemSprite::create(Node *normalSprite, Node *selectedSprite
return ret;
}
// XXX deprecated
// FIXME: deprecated
bool MenuItemSprite::initWithNormalSprite(Node* normalSprite, Node* selectedSprite, Node* disabledSprite, Ref* target, SEL_MenuHandler selector)
{
_target = target;
@ -706,7 +704,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
return MenuItemImage::create(normalImage, selectedImage, "", (const ccMenuCallback&)nullptr);
}
// XXX deprecated
// FIXME: deprecated
MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std::string& selectedImage, Ref* target, SEL_MenuHandler selector)
{
return MenuItemImage::create(normalImage, selectedImage, "", target, selector);
@ -717,7 +715,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
return MenuItemImage::create(normalImage, selectedImage, "", callback);
}
// XXX deprecated
// FIXME: deprecated
MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std::string& selectedImage, const std::string& disabledImage, Ref* target, SEL_MenuHandler selector)
{
MenuItemImage *ret = new (std::nothrow) MenuItemImage();
@ -754,7 +752,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
return nullptr;
}
// XXX: deprecated
// FIXME:: deprecated
bool MenuItemImage::initWithNormalImage(const std::string& normalImage, const std::string& selectedImage, const std::string& disabledImage, Ref* target, SEL_MenuHandler selector)
{
_target = target;
@ -806,7 +804,7 @@ void MenuItemImage::setDisabledSpriteFrame(SpriteFrame * frame)
// MenuItemToggle
//
// XXX: deprecated
// FIXME:: deprecated
MenuItemToggle * MenuItemToggle::createWithTarget(Ref* target, SEL_MenuHandler selector, const Vector<MenuItem*>& menuItems)
{
MenuItemToggle *ret = new (std::nothrow) MenuItemToggle();
@ -827,7 +825,7 @@ MenuItemToggle * MenuItemToggle::createWithCallback(const ccMenuCallback &callba
return ret;
}
// XXX: deprecated
// FIXME:: deprecated
MenuItemToggle * MenuItemToggle::createWithTarget(Ref* target, SEL_MenuHandler selector, MenuItem* item, ...)
{
va_list args;
@ -871,7 +869,7 @@ MenuItemToggle * MenuItemToggle::create()
return ret;
}
// XXX: deprecated
// FIXME:: deprecated
bool MenuItemToggle::initWithTarget(Ref* target, SEL_MenuHandler selector, MenuItem* item, va_list args)
{
_target = target;

View File

@ -26,14 +26,12 @@ THE SOFTWARE.
#include "2d/CCMotionStreak.h"
#include "math/CCVertex.h"
#include "base/ccMacros.h"
#include "base/CCDirector.h"
#include "renderer/CCTextureCache.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/CCCustomCommand.h"
#include "renderer/CCTexture2D.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCGLProgramState.h"
NS_CC_BEGIN

View File

@ -27,16 +27,13 @@ THE SOFTWARE.
#define __CCMOTION_STREAK_H__
#include "base/CCProtocols.h"
#include "renderer/CCTexture2D.h"
#include "base/ccTypes.h"
#include "2d/CCNode.h"
#include "renderer/CCCustomCommand.h"
#ifdef EMSCRIPTEN
#include "CCGLBufferedNode.h"
#endif // EMSCRIPTEN
NS_CC_BEGIN
class Texture2D;
/**
* @addtogroup misc_nodes
* @{
@ -46,9 +43,6 @@ NS_CC_BEGIN
Creates a trailing path.
*/
class CC_DLL MotionStreak : public Node, public TextureProtocol
#ifdef EMSCRIPTEN
, public GLBufferedNode
#endif // EMSCRIPTEN
{
public:
/** creates and initializes a motion streak with fade in seconds, minimum segments, stroke's width, color, texture filename */

View File

@ -43,6 +43,7 @@ THE SOFTWARE.
#include "2d/CCComponent.h"
#include "2d/CCComponentContainer.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCGLProgramState.h"
#include "math/TransformUtils.h"
#include "deprecated/CCString.h"
@ -68,7 +69,7 @@ bool nodeComparisonLess(Node* n1, Node* n2)
);
}
// XXX: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
// FIXME:: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
int Node::s_globalOrderOfArrival = 1;
// MARK: Constructor, Destructor, Init
@ -593,7 +594,7 @@ void Node::setPositionZ(float positionZ)
_positionZ = positionZ;
// XXX BUG
// FIXME: BUG
// Global Z Order should based on the modelViewTransform
setGlobalZOrder(positionZ);
}
@ -1670,7 +1671,7 @@ const Mat4& Node::getNodeToParentTransform() const
_transform.translate(anchorPoint.x, anchorPoint.y, 0);
}
// XXX
// FIXME:
// FIX ME: Expensive operation.
// FIX ME: It should be done together with the rotationZ
if(_rotationY) {
@ -1689,7 +1690,7 @@ const Mat4& Node::getNodeToParentTransform() const
_transform.translate(-anchorPoint.x, -anchorPoint.y, 0);
}
// XXX: Try to inline skew
// FIXME:: Try to inline skew
// If skew is needed, apply skew and then anchor point
if (needsSkewMatrix)
{
@ -1707,8 +1708,8 @@ const Mat4& Node::getNodeToParentTransform() const
// adjust anchor point
if (!_anchorPointInPoints.equals(Vec2::ZERO))
{
// XXX: Argh, Mat4 needs a "translate" method.
// XXX: Although this is faster than multiplying a vec4 * mat4
// FIXME:: Argh, Mat4 needs a "translate" method.
// FIXME:: Although this is faster than multiplying a vec4 * mat4
_transform.m[12] += _transform.m[0] * -_anchorPointInPoints.x + _transform.m[4] * -_anchorPointInPoints.y;
_transform.m[13] += _transform.m[1] * -_anchorPointInPoints.x + _transform.m[5] * -_anchorPointInPoints.y;
}

View File

@ -24,11 +24,7 @@
#include "2d/CCNodeGrid.h"
#include "2d/CCGrid.h"
#include "renderer/CCGroupCommand.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCCustomCommand.h"
NS_CC_BEGIN

View File

@ -24,7 +24,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCParallaxNode.h"
#include "2d/CCParallaxNode.h"
#include "base/ccCArray.h"
NS_CC_BEGIN

View File

@ -30,22 +30,13 @@
#include "2d/CCParticleBatchNode.h"
#include "renderer/CCTextureAtlas.h"
#include "2d/CCGrid.h"
#include "2d/CCParticleSystem.h"
#include "platform/CCFileUtils.h"
#include "base/CCProfiling.h"
#include "base/ccConfig.h"
#include "base/ccMacros.h"
#include "base/base64.h"
#include "base/ZipUtils.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/CCGLProgram.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCQuadCommand.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCTextureAtlas.h"
#include "deprecated/CCString.h"
NS_CC_BEGIN
@ -207,8 +198,8 @@ void ParticleBatchNode::addChildByTagOrName(ParticleSystem* child, int zOrder, i
}
// don't use lazy sorting, reordering the particle systems quads afterwards would be too complex
// XXX research whether lazy sorting + freeing current quads and calloc a new block with size of capacity would be faster
// XXX or possibly using vertexZ for reordering, that would be fastest
// FIXME: research whether lazy sorting + freeing current quads and calloc a new block with size of capacity would be faster
// FIXME: or possibly using vertexZ for reordering, that would be fastest
// this helper is almost equivalent to Node's addChild, but doesn't make use of the lazy sorting
int ParticleBatchNode::addChildHelper(ParticleSystem* child, int z, int aTag, const std::string &name, bool setTag)
{

View File

@ -26,7 +26,6 @@ THE SOFTWARE.
****************************************************************************/
#include "2d/CCParticleExamples.h"
#include "platform/CCImage.h"
#include "base/CCDirector.h"
#include "base/firePngData.h"
#include "renderer/CCTextureCache.h"

View File

@ -48,16 +48,12 @@ THE SOFTWARE.
#include "2d/CCParticleBatchNode.h"
#include "renderer/CCTextureAtlas.h"
#include "platform/CCFileUtils.h"
#include "platform/CCImage.h"
#include "base/ccTypes.h"
#include "base/base64.h"
#include "base/ZipUtils.h"
#include "base/CCDirector.h"
#include "base/CCProfiling.h"
#include "renderer/CCTextureCache.h"
#include "CCGL.h"
#include "deprecated/CCString.h"
#include "platform/CCFileUtils.h"
using namespace std;
@ -174,7 +170,7 @@ bool ParticleSystem::initWithFile(const std::string& plistFile)
CCASSERT( !dict.empty(), "Particles: file not found");
// XXX compute path from a path, should define a function somewhere to do it
// FIXME: compute path from a path, should define a function somewhere to do it
string listFilePath = plistFile;
if (listFilePath.find('/') != string::npos)
{
@ -465,7 +461,7 @@ bool ParticleSystem::initWithTotalParticles(int numberOfParticles)
_emitterMode = Mode::GRAVITY;
// default: modulate
// XXX: not used
// FIXME:: not used
// colorModulate = YES;
_isAutoRemoveOnFinish = false;

View File

@ -30,7 +30,6 @@ THE SOFTWARE.
#include "base/CCProtocols.h"
#include "2d/CCNode.h"
#include "base/CCValue.h"
#include "deprecated/CCString.h"
NS_CC_BEGIN

View File

@ -26,26 +26,21 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCGL.h"
#include "2d/CCParticleSystemQuad.h"
#include "2d/CCSpriteFrame.h"
#include "2d/CCParticleBatchNode.h"
#include "renderer/CCTextureAtlas.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCRenderer.h"
#include "base/CCDirector.h"
#include "base/CCEventType.h"
#include "base/CCConfiguration.h"
#include "math/TransformUtils.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCQuadCommand.h"
#include "renderer/CCCustomCommand.h"
// extern
#include "base/CCEventListenerCustom.h"
#include "base/CCEventDispatcher.h"
#include "deprecated/CCString.h"
NS_CC_BEGIN
ParticleSystemQuad::ParticleSystemQuad()

View File

@ -28,7 +28,7 @@ THE SOFTWARE.
#ifndef __CC_PARTICLE_SYSTEM_QUAD_H__
#define __CC_PARTICLE_SYSTEM_QUAD_H__
#include "CCParticleSystem.h"
#include "2d/CCParticleSystem.h"
#include "renderer/CCQuadCommand.h"
NS_CC_BEGIN

View File

@ -27,17 +27,9 @@ THE SOFTWARE.
#include "base/ccMacros.h"
#include "base/CCDirector.h"
#include "2d/CCDrawingPrimitives.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCGLProgramState.h"
#include "2d/CCSprite.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCCustomCommand.h"
#include "math/TransformUtils.h"
// extern
#include <float.h>
NS_CC_BEGIN
@ -512,22 +504,9 @@ void ProgressTimer::onDraw(const Mat4 &transform, uint32_t flags)
GL::bindTexture2D( _sprite->getTexture()->getName() );
#ifdef EMSCRIPTEN
setGLBufferData((void*) _vertexData, (_vertexDataCount * sizeof(V2F_C4B_T2F)), 0);
int offset = 0;
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
offset += sizeof(Vec2);
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
offset += sizeof(Color4B);
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_TEX_COORD, 2, GL_FLOAT, GL_FALSE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
#else
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, sizeof(_vertexData[0]) , &_vertexData[0].vertices);
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_TEX_COORD, 2, GL_FLOAT, GL_FALSE, sizeof(_vertexData[0]), &_vertexData[0].texCoords);
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(_vertexData[0]), &_vertexData[0].colors);
#endif // EMSCRIPTEN
if(_type == Type::RADIAL)
{

View File

@ -26,14 +26,13 @@ THE SOFTWARE.
#ifndef __MISC_NODE_CCPROGRESS_TIMER_H__
#define __MISC_NODE_CCPROGRESS_TIMER_H__
#include "2d/CCSprite.h"
#include "renderer/CCCustomCommand.h"
#ifdef EMSCRIPTEN
#include "CCGLBufferedNode.h"
#endif // EMSCRIPTEN
#include "2d/CCNode.h"
NS_CC_BEGIN
class Sprite;
/**
* @addtogroup misc_nodes
* @{
@ -46,9 +45,6 @@ NS_CC_BEGIN
@since v0.99.1
*/
class CC_DLL ProgressTimer : public Node
#ifdef EMSCRIPTEN
, public GLBufferedNode
#endif // EMSCRIPTEN
{
public:
/** Types of progress

View File

@ -27,23 +27,13 @@ THE SOFTWARE.
#include "2d/CCRenderTexture.h"
#include "base/ccUtils.h"
#include "platform/CCImage.h"
#include "platform/CCFileUtils.h"
#include "2d/CCGrid.h"
#include "base/CCEventType.h"
#include "base/CCConfiguration.h"
#include "base/CCConfiguration.h"
#include "base/CCDirector.h"
#include "base/CCEventListenerCustom.h"
#include "base/CCEventDispatcher.h"
#include "renderer/CCGLProgram.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCGroupCommand.h"
#include "renderer/CCCustomCommand.h"
#include "CCGL.h"
NS_CC_BEGIN
@ -356,7 +346,7 @@ void RenderTexture::beginWithClear(float r, float g, float b, float a, float dep
Director::getInstance()->getRenderer()->addCommand(&_beginWithClearCommand);
}
//TODO find a better way to clear the screen, there is no need to rebind render buffer there.
//TODO: find a better way to clear the screen, there is no need to rebind render buffer there.
void RenderTexture::clear(float r, float g, float b, float a)
{
this->beginWithClear(r, g, b, a);
@ -504,7 +494,7 @@ Image* RenderTexture::newImage(bool fliimage)
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &_oldFBO);
glBindFramebuffer(GL_FRAMEBUFFER, _FBO);
//TODO move this to configration, so we don't check it every time
// TODO: move this to configration, so we don't check it every time
/* Certain Qualcomm Andreno gpu's will retain data in memory after a frame buffer switch which corrupts the render to the texture. The solution is to clear the frame buffer before rendering to the texture. However, calling glClear has the unintended result of clearing the current texture. Create a temporary texture to overcome this. At the end of RenderTexture::begin(), switch the attached texture to the second one, call glClear, and then switch back to the original texture. This solution is unnecessary for other devices as they don't have the same issue with switching frame buffers.
*/
if (Configuration::getInstance()->checkForGLExtension("GL_QCOM"))
@ -604,7 +594,7 @@ void RenderTexture::onBegin()
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &_oldFBO);
glBindFramebuffer(GL_FRAMEBUFFER, _FBO);
//TODO move this to configration, so we don't check it every time
// TODO: move this to configration, so we don't check it every time
/* Certain Qualcomm Andreno gpu's will retain data in memory after a frame buffer switch which corrupts the render to the texture. The solution is to clear the frame buffer before rendering to the texture. However, calling glClear has the unintended result of clearing the current texture. Create a temporary texture to overcome this. At the end of RenderTexture::begin(), switch the attached texture to the second one, call glClear, and then switch back to the original texture. This solution is unnecessary for other devices as they don't have the same issue with switching frame buffers.
*/
if (Configuration::getInstance()->checkForGLExtension("GL_QCOM"))

View File

@ -166,7 +166,7 @@ public:
void setVirtualViewport(const Vec2& rtBegin, const Rect& fullRect, const Rect& fullViewport);
public:
// XXX should be procted.
// FIXME: should be procted.
// but due to a bug in PowerVR + Android,
// the constructor is public again
RenderTexture();

View File

@ -27,28 +27,14 @@ THE SOFTWARE.
#include "2d/CCSprite.h"
#include <string.h>
#include <algorithm>
#include "2d/CCSpriteBatchNode.h"
#include "2d/CCAnimation.h"
#include "2d/CCAnimationCache.h"
#include "2d/CCSpriteFrame.h"
#include "2d/CCSpriteFrameCache.h"
#include "2d/CCDrawingPrimitives.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCTexture2D.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCRenderer.h"
#include "base/CCProfiling.h"
#include "base/CCDirector.h"
#include "base/CCDirector.h"
#include "base/ccConfig.h"
#include "math/CCGeometry.h"
#include "math/CCAffineTransform.h"
#include "math/TransformUtils.h"
#include "deprecated/CCString.h"
@ -61,6 +47,7 @@ NS_CC_BEGIN
#define RENDER_IN_SUBPIXEL(__ARGS__) (ceil(__ARGS__))
#endif
// MARK: create, init, dealloc
Sprite* Sprite::createWithTexture(Texture2D *texture)
{
Sprite *sprite = new (std::nothrow) Sprite();
@ -307,6 +294,7 @@ static unsigned char cc_2x2_white_image[] = {
#define CC_2x2_WHITE_IMAGE_KEY "/cc_2x2_white_image"
// MARK: texture
void Sprite::setTexture(const std::string &filename)
{
Texture2D *texture = Director::getInstance()->getTextureCache()->addImage(filename);
@ -497,6 +485,8 @@ void Sprite::setTextureCoords(Rect rect)
}
}
// MARK: visit, draw, transform
void Sprite::updateTransform(void)
{
CCASSERT(_batchNode, "updateTransform is only valid when Sprite is being rendered using an SpriteBatchNode");
@ -622,7 +612,8 @@ void Sprite::drawDebugData()
}
#endif //CC_SPRITE_DEBUG_DRAW
// Node overrides
// MARK: visit, draw, transform
void Sprite::addChild(Node *child, int zOrder, int tag)
{
CCASSERT(child != nullptr, "Argument must be non-nullptr");
@ -755,7 +746,7 @@ void Sprite::setDirtyRecursively(bool bValue)
}
}
// XXX HACK: optimization
// FIXME: HACK: optimization
#define SET_DIRTY_RECURSIVELY() { \
if (! _recursiveDirty) { \
_recursiveDirty = true; \
@ -885,7 +876,7 @@ bool Sprite::isFlippedY(void) const
}
//
// RGBA protocol
// MARK: RGBA protocol
//
void Sprite::updateColor(void)
@ -938,7 +929,7 @@ bool Sprite::isOpacityModifyRGB(void) const
return _opacityModifyRGB;
}
// Frames
// MARK: Frames
void Sprite::setSpriteFrame(const std::string &spriteFrameName)
{
@ -1032,7 +1023,7 @@ void Sprite::setBatchNode(SpriteBatchNode *spriteBatchNode)
}
}
// Texture protocol
// MARK: Texture protocol
void Sprite::updateBlendFunc(void)
{

View File

@ -28,15 +28,10 @@ THE SOFTWARE.
#ifndef __SPRITE_NODE_CCSPRITE_H__
#define __SPRITE_NODE_CCSPRITE_H__
#include <string>
#include "2d/CCNode.h"
#include "base/CCProtocols.h"
#include "renderer/CCTextureAtlas.h"
#include "base/ccTypes.h"
#include <string>
#ifdef EMSCRIPTEN
#include "CCGLBufferedNode.h"
#endif // EMSCRIPTEN
#include "physics/CCPhysicsBody.h"
#include "renderer/CCQuadCommand.h"
#include "renderer/CCCustomCommand.h"

View File

@ -27,24 +27,11 @@ THE SOFTWARE.
****************************************************************************/
#include "2d/CCSpriteBatchNode.h"
#include <algorithm>
#include "2d/CCSprite.h"
#include "2d/CCGrid.h"
#include "2d/CCDrawingPrimitives.h"
#include "2d/CCLayer.h"
#include "2d/CCScene.h"
#include "base/ccConfig.h"
#include "base/CCDirector.h"
#include "base/CCProfiling.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/CCGLProgram.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCRenderer.h"
#include "renderer/CCQuadCommand.h"
#include "math/TransformUtils.h"
#include "deprecated/CCString.h" // For StringUtils::format
@ -638,8 +625,8 @@ void SpriteBatchNode::insertQuadFromSprite(Sprite *sprite, ssize_t index)
V3F_C4B_T2F_Quad quad = sprite->getQuad();
_textureAtlas->insertQuad(&quad, index);
// XXX: updateTransform will update the textureAtlas too, using updateQuad.
// XXX: so, it should be AFTER the insertQuad
// FIXME:: updateTransform will update the textureAtlas too, using updateQuad.
// FIXME:: so, it should be AFTER the insertQuad
sprite->setDirty(true);
sprite->updateTransform();
}
@ -675,7 +662,7 @@ SpriteBatchNode * SpriteBatchNode::addSpriteWithoutQuad(Sprite*child, int z, int
// quad index is Z
child->setAtlasIndex(z);
// XXX: optimize with a binary search
// FIXME:: optimize with a binary search
auto it = _descendants.begin();
for (; it != _descendants.end(); ++it)
{

View File

@ -33,7 +33,6 @@ THE SOFTWARE.
#include "2d/CCNode.h"
#include "base/CCProtocols.h"
#include "base/ccMacros.h"
#include "renderer/CCTextureAtlas.h"
#include "renderer/CCBatchCommand.h"

View File

@ -29,7 +29,6 @@ THE SOFTWARE.
#define __SPRITE_CCSPRITE_FRAME_H__
#include "2d/CCNode.h"
#include "base/CCProtocols.h"
#include "base/CCRef.h"
#include "math/CCGeometry.h"

View File

@ -31,14 +31,15 @@ THE SOFTWARE.
#include <vector>
#include "2d/CCSpriteFrame.h"
#include "2d/CCSprite.h"
#include "platform/CCFileUtils.h"
#include "base/CCNS.h"
#include "base/ccMacros.h"
#include "base/CCDirector.h"
#include "renderer/CCTexture2D.h"
#include "renderer/CCTextureCache.h"
#include "math/TransformUtils.h"
#include "deprecated/CCString.h"
@ -313,7 +314,7 @@ void SpriteFrameCache::removeUnusedSpriteFrames()
_spriteFrames.erase(toRemoveFrames);
// XXX. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
// FIXME:. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
if( removed )
{
_loadedFileNames->clear();
@ -340,7 +341,7 @@ void SpriteFrameCache::removeSpriteFrameByName(const std::string& name)
_spriteFrames.erase(name);
}
// XXX. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
// FIXME:. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
_loadedFileNames->clear();
}

View File

@ -34,19 +34,17 @@ THE SOFTWARE.
* To create sprite frames and texture atlas, use this tool:
* http://zwoptex.zwopple.com/
*/
#include <set>
#include <string>
#include "2d/CCSpriteFrame.h"
#include "renderer/CCTexture2D.h"
#include "base/CCRef.h"
#include "base/CCValue.h"
#include "base/CCMap.h"
#include <set>
#include <string>
NS_CC_BEGIN
class Sprite;
class Texture2D;
/**
* @addtogroup sprite_nodes

View File

@ -26,16 +26,11 @@ THE SOFTWARE.
****************************************************************************/
#include "2d/CCTMXLayer.h"
#include "2d/CCTMXXMLParser.h"
#include "2d/CCTMXTiledMap.h"
#include "2d/CCSprite.h"
#include "base/ccCArray.h"
#include "base/CCDirector.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/CCGLProgram.h"
#include "deprecated/CCString.h" // For StringUtils::format
NS_CC_BEGIN
@ -55,7 +50,7 @@ TMXLayer * TMXLayer::create(TMXTilesetInfo *tilesetInfo, TMXLayerInfo *layerInfo
}
bool TMXLayer::initWithTilesetInfo(TMXTilesetInfo *tilesetInfo, TMXLayerInfo *layerInfo, TMXMapInfo *mapInfo)
{
// XXX: is 35% a good estimate ?
// FIXME:: is 35% a good estimate ?
Size size = layerInfo->_layerSize;
float totalNumberOfTiles = size.width * size.height;
float capacity = totalNumberOfTiles * 0.35f + 1; // 35 percent is occupied ?
@ -175,7 +170,7 @@ void TMXLayer::setupTiles()
// gid = CFSwapInt32( gid );
/* We support little endian.*/
// XXX: gid == 0 --> empty tile
// FIXME:: gid == 0 --> empty tile
if (gid != 0)
{
this->appendTileForGID(gid, Vec2(x, y));
@ -292,7 +287,7 @@ Sprite* TMXLayer::reusedTileWithRect(Rect rect)
}
else
{
// XXX HACK: Needed because if "batch node" is nil,
// FIXME: HACK: Needed because if "batch node" is nil,
// then the Sprite'squad will be reset
_reusedTile->setBatchNode(nullptr);
@ -472,7 +467,7 @@ ssize_t TMXLayer::atlasIndexForExistantZ(int z)
ssize_t TMXLayer::atlasIndexForNewZ(int z)
{
// XXX: This can be improved with a sort of binary search
// FIXME:: This can be improved with a sort of binary search
ssize_t i=0;
for (i=0; i< _atlasIndexArray->num ; i++)
{

View File

@ -27,10 +27,8 @@ THE SOFTWARE.
#ifndef __CCTMX_LAYER_H__
#define __CCTMX_LAYER_H__
#include "CCTMXObjectGroup.h"
#include "CCAtlasNode.h"
#include "2d/CCSpriteBatchNode.h"
#include "CCTMXXMLParser.h"
#include "2d/CCTMXXMLParser.h"
#include "base/ccCArray.h"
NS_CC_BEGIN

View File

@ -25,7 +25,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCTMXObjectGroup.h"
#include "2d/CCTMXObjectGroup.h"
#include "base/ccMacros.h"
NS_CC_BEGIN

View File

@ -24,14 +24,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCTMXTiledMap.h"
#include "CCTMXXMLParser.h"
#include "CCTMXLayer.h"
#include "2d/CCTMXTiledMap.h"
#include "2d/CCTMXXMLParser.h"
#include "2d/CCTMXLayer.h"
#include "2d/CCSprite.h"
#include "deprecated/CCString.h" // For StringUtils::format
#include <algorithm>
NS_CC_BEGIN
// implementation TMXTiledMap
@ -138,7 +136,7 @@ TMXTilesetInfo * TMXTiledMap::tilesetForLayer(TMXLayerInfo *layerInfo, TMXMapInf
// gid = CFSwapInt32( gid );
/* We support little endian.*/
// XXX: gid == 0 --> empty tile
// FIXME:: gid == 0 --> empty tile
if( gid != 0 )
{
// Optimization: quick return

View File

@ -28,12 +28,11 @@ THE SOFTWARE.
#define __CCTMX_TILE_MAP_H__
#include "2d/CCNode.h"
#include "CCTMXObjectGroup.h"
#include "2d/CCTMXObjectGroup.h"
#include "base/CCValue.h"
NS_CC_BEGIN
class TMXObjectGroup;
class TMXLayer;
class TMXLayerInfo;
class TMXTilesetInfo;

View File

@ -26,15 +26,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "2d/CCTMXXMLParser.h"
#include <unordered_map>
#include <sstream>
#include "CCTMXXMLParser.h"
#include "CCTMXTiledMap.h"
#include "base/ccMacros.h"
#include "platform/CCFileUtils.h"
#include "2d/CCTMXTiledMap.h"
#include "base/ZipUtils.h"
#include "base/base64.h"
#include "base/CCDirector.h"
#include "platform/CCFileUtils.h"
using namespace std;

View File

@ -33,13 +33,13 @@ THE SOFTWARE.
#include "platform/CCSAXParser.h"
#include "base/CCVector.h"
#include "base/CCValue.h"
#include "2d/CCTMXObjectGroup.h" // needed for Vector<TMXObjectGroup*> for binding
#include <string>
NS_CC_BEGIN
class TMXLayerInfo;
class TMXObjectGroup;
class TMXTilesetInfo;
/** @file

View File

@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCTextFieldTTF.h"
#include "2d/CCTextFieldTTF.h"
#include "base/CCDirector.h"

View File

@ -24,14 +24,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCTileMapAtlas.h"
#include "2d/CCTileMapAtlas.h"
#include "platform/CCFileUtils.h"
#include "renderer/CCTextureAtlas.h"
#include "base/TGAlib.h"
#include "base/ccConfig.h"
#include "base/CCDirector.h"
#include "deprecated/CCString.h"
#include <sstream>
NS_CC_BEGIN
@ -142,8 +141,8 @@ void TileMapAtlas::setTile(const Color3B& tile, const Vec2& position)
{
ptr[(unsigned int)(position.x + position.y * _TGAInfo->width)] = tile;
// XXX: this method consumes a lot of memory
// XXX: a tree of something like that shall be implemented
// FIXME:: this method consumes a lot of memory
// FIXME:: a tree of something like that shall be implemented
std::string key = StringUtils::toString(position.x) + "," + StringUtils::toString(position.y);
int num = _posToAtlasIndex[key].asInt();

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
#ifndef __CCTILE_MAP_ATLAS__
#define __CCTILE_MAP_ATLAS__
#include "CCAtlasNode.h"
#include "2d/CCAtlasNode.h"
#include "base/CCValue.h"
NS_CC_BEGIN

View File

@ -62,7 +62,7 @@ TransitionPageTurn * TransitionPageTurn::create(float t, Scene *scene, bool back
/** initializes a transition with duration and incoming scene */
bool TransitionPageTurn::initWithDuration(float t, Scene *scene, bool backwards)
{
// XXX: needed before [super init]
// FIXME:: needed before [super init]
_back = backwards;
if (TransitionScene::initWithDuration(t, scene))

View File

@ -23,12 +23,9 @@
****************************************************************************/
#include "3d/CCAnimate3D.h"
#include "3d/CCAnimation3D.h"
#include "3d/CCSprite3D.h"
#include "3d/CCSkeleton3D.h"
#include "3d/CCMeshSkin.h"
#include "base/ccMacros.h"
#include "platform/CCFileUtils.h"
NS_CC_BEGIN

View File

@ -28,17 +28,13 @@
#include <map>
#include "3d/CCAnimation3D.h"
#include "3d/3dExport.h"
#include "base/ccMacros.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "base/CCPlatformMacros.h"
#include "2d/CCActionInterval.h"
#include "3d/3dExport.h"
NS_CC_BEGIN
class Animation3D;
class Bone3D;
/**
* Animate3D, Animates a Sprite3D given with an Animation3D

View File

@ -24,8 +24,6 @@
#include "3d/CCAnimation3D.h"
#include "3d/CCBundle3D.h"
#include "base/ccMacros.h"
#include "platform/CCFileUtils.h"
NS_CC_BEGIN

View File

@ -31,8 +31,7 @@
#include "base/ccMacros.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "CCBundle3DData.h"
#include "3d/CCBundle3DData.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -24,10 +24,8 @@
#ifndef __CCANIMATIONCURVE_H__
#define __CCANIMATIONCURVE_H__
#include <unordered_map>
#include <functional>
#include "base/ccTypes.h"
#include "base/CCPlatformMacros.h"
#include "base/CCRef.h"
#include "math/CCMath.h"

View File

@ -25,12 +25,6 @@
#include "3d/CCAttachNode.h"
#include "3d/CCSkeleton3D.h"
#include "2d/CCNode.h"
#include "base/CCDirector.h"
#include "base/CCPlatformMacros.h"
#include "base/ccMacros.h"
NS_CC_BEGIN
AttachNode* AttachNode::create(Bone3D* attachBone)

View File

@ -25,14 +25,8 @@
#ifndef __CCATTACHNODE_H__
#define __CCATTACHNODE_H__
#include <vector>
#include "base/CCVector.h"
#include "base/ccTypes.h"
#include "base/CCProtocols.h"
#include "math/CCMath.h"
#include "2d/CCNode.h"
#include "renderer/CCMeshCommand.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -25,18 +25,10 @@
#ifndef __CCBUNDLE3D_H__
#define __CCBUNDLE3D_H__
#include <map>
#include <list>
#include "3d/CCBundle3DData.h"
#include "base/ccMacros.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "json/document.h"
#include "CCBundleReader.h"
#include "3d/3dExport.h"
#include "3d/CCBundleReader.h"
#include "json/document.h"
NS_CC_BEGIN
class Animation3D;

View File

@ -22,26 +22,14 @@
THE SOFTWARE.
****************************************************************************/
#include <list>
#include <fstream>
#include <iostream>
#include <sstream>
#include "3d/CCMesh.h"
#include "3d/CCMeshSkin.h"
#include "3d/CCSkeleton3D.h"
#include "3d/CCMeshVertexIndexData.h"
#include "base/ccMacros.h"
#include "base/CCEventCustom.h"
#include "base/CCEventListenerCustom.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventType.h"
#include "base/CCDirector.h"
#include "renderer/ccGLStateCache.h"
#include "renderer/CCTexture2D.h"
#include "renderer/CCTextureCache.h"
#include "renderer/CCGLProgramCache.h"
#include "renderer/CCGLProgramState.h"
using namespace std;

View File

@ -26,17 +26,13 @@
#define __CCMESH_H__
#include <string>
#include <vector>
#include "3d/CCBundle3DData.h"
#include "3d/CCAABB.h"
#include "3d/3dExport.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "math/CCMath.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCGLProgramState.h"
#include "renderer/CCMeshCommand.h"
NS_CC_BEGIN
@ -44,6 +40,8 @@ NS_CC_BEGIN
class Texture2D;
class MeshSkin;
class MeshIndexData;
class GLProgramState;
class GLProgram;
/**
* Mesh: contains ref to index buffer, GLProgramState, texture, skin, blend function, aabb and so on
*/

View File

@ -25,10 +25,7 @@
#include "3d/CCMeshSkin.h"
#include "3d/CCSkeleton3D.h"
#include "3d/CCBundle3D.h"
#include "base/ccMacros.h"
#include "base/CCPlatformMacros.h"
#include "platform/CCFileUtils.h"
#include "3d/CCSkeleton3D.h"
NS_CC_BEGIN

View File

@ -25,17 +25,12 @@
#ifndef __CCMESHSKIN_H__
#define __CCMESHSKIN_H__
#include <unordered_map>
#include "3d/CCBundle3DData.h"
#include "3d/CCSkeleton3D.h"
#include "base/ccMacros.h"
#include "3d/3dExport.h"
#include "base/CCRef.h"
#include "base/CCVector.h"
#include "base/ccTypes.h"
#include "math/CCMath.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -30,14 +30,15 @@
#include "3d/CCBundle3DData.h"
#include "3d/CCAABB.h"
#include "3d/3dExport.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "base/CCVector.h"
#include "math/CCMath.h"
#include "renderer/CCGLProgram.h"
#include "renderer/CCVertexIndexData.h"
#include "renderer/CCVertexIndexBuffer.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -16,17 +16,11 @@
// version 0.9.0: Initial
//
#include <cstdlib>
#include <cstring>
#include <cassert>
#include "CCObjLoader.h"
#include <string>
#include <vector>
#include <map>
#include <fstream>
#include <sstream>
#include "CCObjLoader.h"
#include "platform/CCFileUtils.h"
#include "base/ccUtils.h"

View File

@ -20,9 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CCRay.h"
#include "CCAABB.h"
#include "CCOBB.h"
#include "3d/CCRay.h"
NS_CC_BEGIN

View File

@ -25,10 +25,9 @@
#ifndef __CC_RAY_H_
#define __CC_RAY_H_
#include "base/ccMacros.h"
#include "math/CCMath.h"
#include "CCAABB.h"
#include "CCOBB.h"
#include "3d/CCAABB.h"
#include "3d/CCOBB.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -23,11 +23,7 @@
****************************************************************************/
#include "3d/CCSkeleton3D.h"
#include "3d/CCBundle3D.h"
#include "base/ccMacros.h"
#include "base/CCPlatformMacros.h"
#include "platform/CCFileUtils.h"
NS_CC_BEGIN

View File

@ -25,16 +25,11 @@
#ifndef __CCSKELETON3D_H__
#define __CCSKELETON3D_H__
#include <unordered_map>
#include "3d/CCBundle3DData.h"
#include "base/ccMacros.h"
#include "3d/3dExport.h"
#include "base/CCRef.h"
#include "base/CCVector.h"
#include "base/ccTypes.h"
#include "math/CCMath.h"
#include "3d/3dExport.h"
NS_CC_BEGIN

View File

@ -28,7 +28,7 @@
#include "3d/CCBundle3D.h"
#include "3d/CCSprite3DMaterial.h"
#include "3d/CCAttachNode.h"
#include "3d/CCSkeleton3D.h"
#include "3d/CCMesh.h"
#include "base/CCDirector.h"
#include "base/CCPlatformMacros.h"

View File

@ -25,7 +25,6 @@
#ifndef __CCSPRITE3D_H__
#define __CCSPRITE3D_H__
#include <vector>
#include <unordered_map>
#include "base/CCVector.h"
@ -33,9 +32,9 @@
#include "base/CCProtocols.h"
#include "2d/CCNode.h"
#include "renderer/CCMeshCommand.h"
#include "3d/CCSkeleton3D.h" // need to include for lua-binding
#include "3d/CCAABB.h"
#include "3d/CCBundle3DData.h"
#include "3d/CCMesh.h"
#include "3d/CCMeshVertexIndexData.h"
#include "3d/3dExport.h"
@ -47,10 +46,7 @@ class Mesh;
class Texture2D;
class MeshSkin;
class AttachNode;
class SubMeshState;
class Skeleton3D;
struct NodeData;
class SubMesh;
/** Sprite3D: A sprite can be loaded from 3D model files, .obj, .c3t, .c3b, then can be drawed as sprite */
class CC_3D_DLL Sprite3D : public Node, public BlendProtocol
{

View File

@ -24,13 +24,7 @@
#include "3d/CCSprite3DMaterial.h"
#include "platform/CCFileUtils.h"
#include "renderer/CCTextureCache.h"
#include "base/CCEventCustom.h"
#include "base/CCEventListenerCustom.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventType.h"
#include "base/CCDirector.h"
#include "renderer/CCTexture2D.h"
NS_CC_BEGIN

View File

@ -28,14 +28,9 @@
#include <string>
#include <unordered_map>
#include "base/ccTypes.h"
#include "base/CCMap.h"
NS_CC_BEGIN
class Sprite3D;
class Mesh;
class EventListenerCustom;
class EventCustom;
class Texture2D;
/**

View File

@ -27,11 +27,7 @@ THE SOFTWARE.
#ifndef _SIMPLE_AUDIO_ENGINE_H_
#define _SIMPLE_AUDIO_ENGINE_H_
#include <stddef.h>
#include "Export.h"
#include <typeinfo>
#include <ctype.h>
#include <string.h>
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
#define CC_DEPRECATED_ATTRIBUTE __attribute__((deprecated))

View File

@ -338,7 +338,7 @@ typedef struct _sourceInfo {
#pragma mark CDAsynchBufferLoader
/** CDAsynchBufferLoader
TODO
* TODO: ???
*/
@interface CDAsynchBufferLoader : NSOperation {
NSArray *_loadRequests;

View File

@ -25,7 +25,6 @@ THE SOFTWARE.
#ifndef __AUTORELEASEPOOL_H__
#define __AUTORELEASEPOOL_H__
#include <stack>
#include <vector>
#include <string>
#include "base/CCRef.h"

View File

@ -25,7 +25,6 @@
#include "base/CCDirector.h"
#include "platform/CCGLView.h"
#include "2d/CCScene.h"
#include "2d/CCNode.h"
NS_CC_BEGIN

View File

@ -24,7 +24,6 @@ THE SOFTWARE.
#ifndef _CCCAMERA_H__
#define _CCCAMERA_H__
#include "base/CCVector.h"
#include "2d/CCNode.h"
NS_CC_BEGIN

View File

@ -25,9 +25,6 @@ THE SOFTWARE.
****************************************************************************/
#include "base/CCConfiguration.h"
#include <string.h>
#include "base/ccMacros.h"
#include "base/ccConfig.h"
#include "platform/CCFileUtils.h"
NS_CC_BEGIN
@ -161,13 +158,13 @@ void Configuration::destroyInstance()
CC_SAFE_RELEASE_NULL(s_sharedConfiguration);
}
// XXX: deprecated
// FIXME: deprecated
Configuration* Configuration::sharedConfiguration()
{
return Configuration::getInstance();
}
// XXX: deprecated
// FIXME: deprecated
void Configuration::purgeConfiguration()
{
Configuration::destroyInstance();

View File

@ -237,7 +237,7 @@ static void _log(const char *format, va_list args)
}
// XXX: Deprecated
// FIXME: Deprecated
void CCLog(const char * format, ...)
{
va_list args;

View File

@ -23,15 +23,13 @@
THE SOFTWARE.
****************************************************************************/
#include "CCController.h"
#include "base/CCController.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#include "ccMacros.h"
#include "CCEventDispatcher.h"
#include "CCEventController.h"
#include "CCEventListenerController.h"
#include "CCDirector.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventController.h"
#include "base/CCDirector.h"
NS_CC_BEGIN

View File

@ -24,10 +24,6 @@
****************************************************************************/
#include "base/CCData.h"
#include "platform/CCCommon.h"
#include "base/ccMacros.h"
#include <string>
NS_CC_BEGIN

View File

@ -32,16 +32,16 @@ THE SOFTWARE.
#include <string>
#include "2d/CCDrawingPrimitives.h"
#include "2d/CCScene.h"
#include "2d/CCSpriteFrameCache.h"
#include "platform/CCFileUtils.h"
#include "platform/CCImage.h"
#include "2d/CCActionManager.h"
#include "2d/CCFontFNT.h"
#include "2d/CCFontAtlasCache.h"
#include "2d/CCAnimationCache.h"
#include "2d/CCTransition.h"
#include "2d/CCFontFreeType.h"
#include "2d/CCLabelAtlas.h"
#include "renderer/CCGLProgramCache.h"
#include "renderer/CCGLProgramStateCache.h"
#include "renderer/CCTextureCache.h"
@ -55,12 +55,9 @@ THE SOFTWARE.
#include "base/CCEventDispatcher.h"
#include "base/CCEventCustom.h"
#include "base/CCConsole.h"
#include "base/CCTouch.h"
#include "base/CCAutoreleasePool.h"
#include "base/CCProfiling.h"
#include "base/CCConfiguration.h"
#include "base/CCNS.h"
#include "math/CCMath.h"
#include "CCApplication.h"
#include "CCGLViewImpl.h"
@ -76,7 +73,7 @@ THE SOFTWARE.
using namespace std;
NS_CC_BEGIN
// XXX it should be a Director ivar. Move it there once support for multiple directors is added
// FIXME: it should be a Director ivar. Move it there once support for multiple directors is added
// singleton stuff
static DisplayLinkDirector *s_SharedDirector = nullptr;
@ -241,7 +238,7 @@ void Director::setGLDefaultValues()
CCASSERT(_openGLView, "opengl view should not be null");
setAlphaBlending(true);
// XXX: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
// FIXME: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
// [self setDepthTest: view_.depthFormat];
setDepthTest(false);
setProjection(_projection);
@ -277,7 +274,8 @@ void Director::drawScene()
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
/* to avoid flickr, nextScene MUST be here: after tick and before draw.
XXX: Which bug is this one. It seems that it can't be reproduced with v0.9 */
* FIXME: Which bug is this one. It seems that it can't be reproduced with v0.9
*/
if (_nextScene)
{
setNextScene();
@ -1158,7 +1156,7 @@ void Director::calculateMPF()
// returns the FPS image data pointer and len
void Director::getFPSImageData(unsigned char** datapointer, ssize_t* length)
{
// XXX fixed me if it should be used
// FIXME: fixed me if it should be used
*datapointer = cc_fps_images_png;
*length = cc_fps_images_len();
}

View File

@ -31,12 +31,9 @@ THE SOFTWARE.
#include "base/CCPlatformMacros.h"
#include "base/CCRef.h"
#include "base/ccTypes.h"
#include "math/CCGeometry.h"
#include "base/CCVector.h"
#include "CCGL.h"
#include "2d/CCLabelAtlas.h"
#include "2d/CCScene.h"
#include "CCGL.h"
#include <stack>
#include "math/CCMath.h"
#include "platform/CCGLView.h"
@ -50,7 +47,6 @@ NS_CC_BEGIN
/* Forward declarations. */
class LabelAtlas;
class Scene;
//class GLView;
class DirectorDelegate;
class Node;
@ -246,7 +242,7 @@ public:
*/
Vec2 convertToUI(const Vec2& point);
/// XXX: missing description
/// FIXME: missing description
float getZEye() const;
// Scene Management

View File

@ -26,9 +26,6 @@
#ifndef __CCEVENT_H__
#define __CCEVENT_H__
#include <string>
#include <stdint.h>
#include "base/CCRef.h"
#include "base/CCPlatformMacros.h"

View File

@ -23,8 +23,7 @@
****************************************************************************/
#include "base/CCEventCustom.h"
#include "base/ccMacros.h"
#include <functional>
#include "base/CCEvent.h"
NS_CC_BEGIN

View File

@ -25,6 +25,7 @@
#ifndef __cocos2d_libs__CCCustomEvent__
#define __cocos2d_libs__CCCustomEvent__
#include <string>
#include "base/CCEvent.h"
NS_CC_BEGIN

View File

@ -22,8 +22,8 @@
THE SOFTWARE.
****************************************************************************/
#include "base/CCEventDispatcher.h"
#include "base/CCEvent.h"
#include "base/CCEventTouch.h"
#include <algorithm>
#include "base/CCEventCustom.h"
#include "base/CCEventListenerTouch.h"
#include "base/CCEventListenerAcceleration.h"
@ -38,8 +38,6 @@
#include "base/CCDirector.h"
#include "base/CCEventType.h"
#include <algorithm>
#define DUMP_LISTENER_ITEM_PRIORITY_INFO 0

View File

@ -25,17 +25,17 @@
#ifndef __CC_EVENT_DISPATCHER_H__
#define __CC_EVENT_DISPATCHER_H__
#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
#include <set>
#include "base/CCPlatformMacros.h"
#include "base/CCEventListener.h"
#include "base/CCEvent.h"
#include "CCStdC.h"
#include <functional>
#include <string>
#include <unordered_map>
#include <list>
#include <vector>
NS_CC_BEGIN
class Event;

View File

@ -23,7 +23,7 @@
THE SOFTWARE.
****************************************************************************/
#include "CCEventFocus.h"
#include "base/CCEventFocus.h"
NS_CC_BEGIN

View File

@ -26,7 +26,7 @@
#ifndef __cocos2d_libs__CCEventFocus__
#define __cocos2d_libs__CCEventFocus__
#include "CCEvent.h"
#include "base/CCEvent.h"
NS_CC_BEGIN

View File

@ -22,9 +22,7 @@
THE SOFTWARE.
****************************************************************************/
#include "base/CCConsole.h"
#include "base/CCEventListener.h"
#include "platform/CCCommon.h"
NS_CC_BEGIN

View File

@ -25,13 +25,12 @@
#ifndef __CCEVENTLISTENER_H__
#define __CCEVENTLISTENER_H__
#include "base/CCPlatformMacros.h"
#include "base/CCRef.h"
#include <functional>
#include <string>
#include <memory>
#include <set>
#include "base/CCPlatformMacros.h"
#include "base/CCRef.h"
NS_CC_BEGIN

View File

@ -23,9 +23,9 @@
THE SOFTWARE.
****************************************************************************/
#include "CCEventListenerController.h"
#include "CCEventController.h"
#include "ccMacros.h"
#include "base/CCEventListenerController.h"
#include "base/CCEventController.h"
#include "base/ccMacros.h"
#include "base/CCController.h"
NS_CC_BEGIN

View File

@ -23,9 +23,9 @@
THE SOFTWARE.
****************************************************************************/
#include "CCEventListenerFocus.h"
#include "CCEventFocus.h"
#include "ccMacros.h"
#include "base/CCEventListenerFocus.h"
#include "base/CCEventFocus.h"
#include "base/ccMacros.h"
NS_CC_BEGIN

Some files were not shown because too many files have changed in this diff Show More