Hi,
Ive got a texture manager class. Its a singleton as I want it to manage all my different texture objects. Its also an abstract class as there are multiple implementations of textures (such as bmp and tga loading etc) that i want to control using a base ptr.
What i want is to derive different classes such as a tgaTexture bmpTexture etc, they dont want to be singletons, as there can be multiple instances at any one time.
My problem is that I can't by the nature of the singleton pattern that I know derive classes from this singleton. Because my constructor of my singleton is private and if it wasnt I would be creating multiple instances of a class that i want lmited to one instance.
Is there any way of having a singleton and aslo deriving from that singleton?
Many Thanks
Alex