mirror of https://github.com/axmolengine/axmol.git
specialize RenderCommandPool<QuadCommand>
This commit is contained in:
parent
4e25d88741
commit
b4c61d5a7c
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue