您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ CC_UNUSED_PARAM函数代码示例

51自学网 2021-06-01 19:57:51
  C++
这篇教程C++ CC_UNUSED_PARAM函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中CC_UNUSED_PARAM函数的典型用法代码示例。如果您正苦于以下问题:C++ CC_UNUSED_PARAM函数的具体用法?C++ CC_UNUSED_PARAM怎么用?C++ CC_UNUSED_PARAM使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了CC_UNUSED_PARAM函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: CC_UNUSED_PARAM

bool CCImage::initWithImageFile(const char * strPath, EImageFormat eImgFmt/* = eFmtPng*/){    CC_UNUSED_PARAM(eImgFmt);    CCFileData data(CCFileUtils::fullPathFromRelativePath(strPath), "rb");    return initWithImageData(data.getBuffer(), data.getSize(), eImgFmt);}
开发者ID:AfterTheRainOfStars,项目名称:cocos2d-x-qt,代码行数:6,


示例2: CC_UNUSED_PARAM

void CCActionInstant::step(float dt) {    CC_UNUSED_PARAM(dt);    update(1);}
开发者ID:fordream,项目名称:quick,代码行数:4,


示例3: endElement

    void endElement(void *ctx, const char *name)    {        CC_UNUSED_PARAM(ctx);        SAXState curState = _stateStack.empty() ? SAX_DICT : _stateStack.top();        const std::string sName((char*)name);        if( sName == "dict" )        {            _stateStack.pop();            _dictStack.pop();            if ( !_dictStack.empty())            {                _curDict = _dictStack.top();            }        }        else if (sName == "array")        {            _stateStack.pop();            _arrayStack.pop();            if (! _arrayStack.empty())            {                _curArray = _arrayStack.top();            }        }        else if (sName == "true")        {            if (SAX_ARRAY == curState)            {                _curArray->push_back(Value(true));            }            else if (SAX_DICT == curState)            {                (*_curDict)[_curKey] = Value(true);            }        }        else if (sName == "false")        {            if (SAX_ARRAY == curState)            {                _curArray->push_back(Value(false));            }            else if (SAX_DICT == curState)            {                (*_curDict)[_curKey] = Value(false);            }        }        else if (sName == "string" || sName == "integer" || sName == "real")        {            if (SAX_ARRAY == curState)            {                if (sName == "string")                    _curArray->push_back(Value(_curValue));                else if (sName == "integer")                    _curArray->push_back(Value(atoi(_curValue.c_str())));                else                    _curArray->push_back(Value(utils::atof(_curValue.c_str())));            }            else if (SAX_DICT == curState)            {                if (sName == "string")                    (*_curDict)[_curKey] = Value(_curValue);                else if (sName == "integer")                    (*_curDict)[_curKey] = Value(atoi(_curValue.c_str()));                else                    (*_curDict)[_curKey] = Value(utils::atof(_curValue.c_str()));            }            _curValue.clear();        }                _state = SAX_NONE;    }
开发者ID:RaoZiJian,项目名称:WarriorQuest,代码行数:71,


示例4: CC_UNUSED_PARAM

void InputDelegate::onTouchesEnded(const std::vector<Touch*>& pTouches, Event *pEvent){    CC_UNUSED_PARAM(pTouches);    CC_UNUSED_PARAM(pEvent);}
开发者ID:0xiaohui00,项目名称:Cocos2dx-Wechat,代码行数:5,


示例5: ccTouchEnded

 void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent) {     CC_UNUSED_PARAM(pTouch);      CC_UNUSED_PARAM(pEvent);     ScriptingCore::getInstance()->executeCustomTouchEvent(CCTOUCHENDED,                                                            pTouch, _mObj); }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:6,


示例6: CC_UNUSED_PARAM

void CCActionInstant::update(ccTime time) {	CC_UNUSED_PARAM(time);	// ignore}
开发者ID:Avnerus,项目名称:ichigo,代码行数:4,


示例7: CC_UNUSED_PARAM

void CCAction::update(float time){    CC_UNUSED_PARAM(time);    CCLOG("[Action update]. override me");}
开发者ID:boruis,项目名称:cocos2dx-classical,代码行数:5,


示例8: ccTouchesBegan

 // optional void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent) {     CC_UNUSED_PARAM(pTouches);      CC_UNUSED_PARAM(pEvent);     ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHBEGAN,                                                            pTouches, _mObj); }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:7,


示例9: startElement

    void startElement(void *ctx, const char *name, const char **atts)    {        CC_UNUSED_PARAM(ctx);        CC_UNUSED_PARAM(atts);        const std::string sName(name);        if( sName == "dict" )        {			if(_resultType == SAX_RESULT_DICT && _rootDict.empty())            {                _curDict = &_rootDict;            }            _state = SAX_DICT;            SAXState preState = SAX_NONE;            if (! _stateStack.empty())            {                preState = _stateStack.top();            }            if (SAX_ARRAY == preState)            {                // add a new dictionary into the array                _curArray->push_back(Value(ValueMap()));				_curDict = &(_curArray->rbegin())->asValueMap();            }            else if (SAX_DICT == preState)            {                // add a new dictionary into the pre dictionary                CCASSERT(! _dictStack.empty(), "The state is wrong!");                ValueMap* preDict = _dictStack.top();                (*preDict)[_curKey] = Value(ValueMap());				_curDict = &(*preDict)[_curKey].asValueMap();            }            // record the dict state            _stateStack.push(_state);            _dictStack.push(_curDict);        }        else if(sName == "key")        {            _state = SAX_KEY;        }        else if(sName == "integer")        {            _state = SAX_INT;        }        else if(sName == "real")        {            _state = SAX_REAL;        }        else if(sName == "string")        {            _state = SAX_STRING;        }        else if (sName == "array")        {            _state = SAX_ARRAY;			if (_resultType == SAX_RESULT_ARRAY && _rootArray.empty())            {				_curArray = &_rootArray;            }            SAXState preState = SAX_NONE;            if (! _stateStack.empty())            {                preState = _stateStack.top();            }            if (preState == SAX_DICT)            {                (*_curDict)[_curKey] = Value(ValueVector());				_curArray = &(*_curDict)[_curKey].asValueVector();            }            else if (preState == SAX_ARRAY)            {                CCASSERT(! _arrayStack.empty(), "The state is wrong!");                ValueVector* preArray = _arrayStack.top();                preArray->push_back(Value(ValueVector()));				_curArray = &(_curArray->rbegin())->asValueVector();            }            // record the array state            _stateStack.push(_state);            _arrayStack.push(_curArray);        }        else        {            _state = SAX_NONE;        }    }
开发者ID:RaoZiJian,项目名称:WarriorQuest,代码行数:90,


示例10: ccTouchesCancelled

 void ccTouchesCancelled(CCSet *pTouches, CCEvent *pEvent) {     CC_UNUSED_PARAM(pTouches);      CC_UNUSED_PARAM(pEvent);     ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHCANCELLED,                                                              pTouches, _mObj); }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:6,


示例11: CC_UNUSED_PARAM

void CCMotionStreak::setOpacityModifyRGB(bool bValue){    CC_UNUSED_PARAM(bValue);}
开发者ID:boruis,项目名称:cocos2dx-classical,代码行数:4,


示例12: CC_UNUSED_PARAM

void CCTouchDispatcher::setPriority(int nPriority, CCTouchDelegate *pDelegate){    CC_UNUSED_PARAM(nPriority);    CC_UNUSED_PARAM(pDelegate);	assert(0);}
开发者ID:classfoo,项目名称:cocos2d-x,代码行数:6,


示例13: CC_UNUSED_PARAM

bool EventListenerPhysicsContact::hitTest(PhysicsShape* shapeA, PhysicsShape* shapeB){    CC_UNUSED_PARAM(shapeA);    CC_UNUSED_PARAM(shapeB);    return true;}
开发者ID:1097195326,项目名称:GameAreas,代码行数:6,


示例14: CC_UNUSED_PARAM

void Spider::actionDownEnd(cocos2d::CCObject *s){    Spider* spider = (Spider*)s;        CC_UNUSED_PARAM(spider);}
开发者ID:SongCF,项目名称:game-LostStar,代码行数:6,


示例15: CC_UNUSED_PARAM

void CCParticleSystem::updateQuadWithParticle(tCCParticle* particle, const CCPoint& newPosition){    CC_UNUSED_PARAM(particle);    CC_UNUSED_PARAM(newPosition);	// should be overriden}
开发者ID:OrbotixInc,项目名称:cocos2d-x,代码行数:6,


示例16: CC_UNUSED_PARAM

CCData * CCRenderTexture::getUIImageAsDataFromBuffer(int format){    CC_UNUSED_PARAM(format);    CCData *  pData     = NULL;//@ todo CCRenderTexture::getUIImageAsDataFromBuffer// #include "Availability.h"// #include "UIKit.h"//     GLubyte * pBuffer   = NULL;//     GLubyte * pPixels   = NULL;//     do //     {//         CC_BREAK_IF(! m_pTexture);// //         CCAssert(m_ePixelFormat == kCCTexture2DPixelFormat_RGBA8888, "only RGBA8888 can be saved as image");// //         const CCSize& s = m_pTexture->getContentSizeInPixels();//         int tx = s.width;//         int ty = s.height;// //         int bitsPerComponent = 8;//         int bitsPerPixel = 32;// //         int bytesPerRow = (bitsPerPixel / 8) * tx;//         int myDataLength = bytesPerRow * ty;// //         CC_BREAK_IF(! (pBuffer = new GLubyte[tx * ty * 4]));//         CC_BREAK_IF(! (pPixels = new GLubyte[tx * ty * 4]));// //         this->begin();//         glReadPixels(0,0,tx,ty,GL_RGBA,GL_UNSIGNED_BYTE, pBuffer);//         this->end();// //         int x,y;// //         for(y = 0; y <ty; y++) {//             for(x = 0; x <tx * 4; x++) {//                 pPixels[((ty - 1 - y) * tx * 4 + x)] = pBuffer[(y * 4 * tx + x)];//             }//         }// //         if (format == kCCImageFormatRawData)//         {//             pData = CCData::dataWithBytesNoCopy(pPixels, myDataLength);//             break;//         }        //@ todo impliment save to jpg or png        /*        CGImageCreate(size_t width, size_t height,        size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,        CGColorSpaceRef space, CGBitmapInfo bitmapInfo, CGDataProviderRef provider,        const CGFloat decode[], bool shouldInterpolate,        CGColorRenderingIntent intent)        */        // make data provider with data.//         CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedLast | kCGBitmapByteOrderDefault;//         CGDataProviderRef provider		= CGDataProviderCreateWithData(NULL, pixels, myDataLength, NULL);//         CGColorSpaceRef colorSpaceRef	= CGColorSpaceCreateDeviceRGB();//         CGImageRef iref					= CGImageCreate(tx, ty,//             bitsPerComponent, bitsPerPixel, bytesPerRow,//             colorSpaceRef, bitmapInfo, provider,//             NULL, false,//             kCGRenderingIntentDefault);// //         UIImage* image					= [[UIImage alloc] initWithCGImage:iref];// //         CGImageRelease(iref);	//         CGColorSpaceRelease(colorSpaceRef);//         CGDataProviderRelease(provider);// // // //         if (format == kCCImageFormatPNG)//             data = UIImagePNGRepresentation(image);//         else//             data = UIImageJPEGRepresentation(image, 1.0f);// //         [image release];//     } while (0);//     //     CC_SAFE_DELETE_ARRAY(pBuffer);//     CC_SAFE_DELETE_ARRAY(pPixels);	return pData;}
开发者ID:136446529,项目名称:Tiny-Wings-Remake-on-Android,代码行数:86,


示例17: CC_UNUSED_PARAM

void CCAction::step(float dt){    CC_UNUSED_PARAM(dt);    CCLOG("[Action step]. override me");}
开发者ID:13609594236,项目名称:CrossApp,代码行数:5,


示例18: CC_UNUSED_PARAM

void Layer::onTouchesCancelled(const std::vector<Touch*>& touches, Event *unused_event){    CC_UNUSED_PARAM(unused_event);}
开发者ID:mcodegeeks,项目名称:OpenKODE-Framework,代码行数:4,



注:本文中的CC_UNUSED_PARAM函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ CColor函数代码示例
C++ CC_UNLIKELY函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。