Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Cocos2d-x custom allocaters not found in v3.12

$
0
0

@sheshmoshen wrote:

Hi, I want to use cocos2d-x custom allocators for Node* objects and I have a class like this:

class CellSprite : public cocos2d::Sprite {
public:
    cocos2d::allocator::AllocatorStrategyPool<CellSprite> alloc;
    CC_USE_ALLOCATOR_POOL(CellSprite, alloc);
};

But I'm getting an error "No member named 'allocater' in namespace 'cocos2d'"
Anyone know how to fix this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2748

Trending Articles