Problem deriving from Sprite : draw not called


#1

I’ve created a class that derives from Sprite :

class CC_DLL WrapSprite : public Sprite { public: WrapSprite() { } virtual void draw(void) override; // implemented / breakpointed in the cpp };

I’m using this class and I’ve put a breakpoint on the constructor and on the draw method.
I’m hitting the breakpoint in the constructor, so it’s actually being used, but I’m not hitting the breakpoint in the draw call. The sprite is still being drawn by the draw call of the Sprite class.

I’m sure I must be missing something really simple.
Anyone got any idea why overriding the draw call doesn’t work ?