I have a question for those objective c gurus. I have an interface with 2 CCRenderTexture's in it, and instead of each instance of this class creating their own textures, I want a static texture at the class level...
// CCMyTransition.h
@interface CCMyTransition : CCTransitionScene
{
BOOL back_;
CCRenderTexture* nextTexture;
CCRenderTexture* lastTexture;
}
My Instinct was to just add 'static' in front of my two texture declarations, but this isn't valid.
For singletons I use a static shared.... property
What is the appropriate style for doing this in objective c? In the past I just created a static CCRenderTexture* in the .m file [effectively a global] and made static gettor functions, but I feel this is more of a hack than proper OOP style coding. I would appreciate any scrutiny into the practice of using class statics as well...