cocos2d-x tiledMap 地图黑线(分全送了)
方法1: 修改ccConfig.h #define CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL 1方法2:CCDirector::sharedDirector()->setProjection(kCCDirectorProjection2D);
方法3: CCTMXTiledMap* m_pTiledMap;
CCObject* pObj = NULL;
CCArray* pChildren = m_pTiledMap->getChildren();
if (pChildren && pChildren->count() > 0)
{
CCObject* pObject = NULL;
CCARRAY_FOREACH(pChildren, pObject)
{
CCSpriteBatchNode* node = (CCSpriteBatchNode*)pObject;
node->getTexture()->setAliasTexParameters();
}
}
求各路大神指点迷津 --------------------编程问答-------------------- 整理下方法三的代码
方法3:
CCTMXTiledMap* m_pTiledMap;
CCObject* pObj = NULL;
CCArray* pChildren = m_pTiledMap->getChildren();
if (pChildren && pChildren->count() > 0)
{
CCObject* pObject = NULL;
CCARRAY_FOREACH(pChildren, pObject)
{
CCSpriteBatchNode* node = (CCSpriteBatchNode*)pObject;
node->getTexture()->setAliasTexParameters();
}
} --------------------编程问答-------------------- 上面三种方法都用了 还是有黑线。
上面三种方法都用了 还是有黑线。
上面三种方法都用了 还是有黑线。
补充:移动开发 , 移动开发其他问题