specialize RenderCommandPool<QuadCommand>

This commit is contained in:
Huabing.Xu 2013-12-26 14:44:21 +08:00
parent 4e25d88741
commit b4c61d5a7c
1 changed files with 15 additions and 0 deletions

View File

@ -97,6 +97,21 @@ protected:
static RenderCommandPool<QuadCommand> _commandPool;
};
template <>
class RenderCommandPool<QuadCommand>
{
public:
QuadCommand* generateCommand()
{
return new QuadCommand();
}
void pushBackCommand(QuadCommand* ptr)
{
delete ptr;
}
};
NS_CC_END
#endif //_CC_QUADCOMMAND_H_