SpriteFactory interface to create Sprites. More...
#include <NEngine/SpriteFactory.h>
Public Member Functions | |
Sprite * | createSpriteFromColour (const Colour &colour, const USize2 &spriteSize) |
Create a Sprite from a colour and a size. | |
Protected Member Functions | |
virtual Sprite * | createSprite (const Colour &colour, const USize2 &spriteSize)=0 |
Create a Sprite from a colour and a size. |
SpriteFactory interface to create Sprites.
The SpriteFactory creates Sprite from a colour and a size This class use a bank of Sprite to not create to times the same sprite
NE::Sprite * NE::SpriteFactory::createSprite | ( | const Colour & | colour, | |
const USize2 & | spriteSize | |||
) | [protected, pure virtual] |
Create a Sprite from a colour and a size.
Implemented in NE::SDL_SpriteFactory.
NE::Sprite * NE::SpriteFactory::createSpriteFromColour | ( | const Colour & | colour, | |
const USize2 & | spriteSize | |||
) |