Hey,
I'm having a problem using the CCRenderTexture class.
I am trying to get my game background, which is loaded on every level and stays the same.
What i am trying to achieve is
- on load, call begin on the renderTexture object
- render a sprite by calling [someImageSprite visit]
- [renderTexture end]
- draw the rendered sprite on screen by adding the renderTexture on the layer.
All i get is a big black square -- Nothing rendered. In some cases i get like a small portion of my sprite (which is 480 x 320), something like 10x10, streched onto the entire screen.
Sprite dimensions are fine, renderTexture size is fine also.
Any ideas on what i might be doing wrong?
PS: not very much documentation on CCRenderTexture on the web either