CCDrawprimitives: getting the bitmaps?

CCDrawprimitives: getting the bitmaps?
0.0 0


Say I’d like to make a small drawingapp using the CCDrawing primitves. At some point I will want to print or save to file the result of that drawing. However I can’t figure out on which object those points are drawn and how I can then obtain the bitmaps to e.g. turn into png file and/or sentd toserver etc…
any idea?


You can use glReadPixels to do this. Or refer to CCRenderTexture::saveBuffer in v0.9.1, I’m not sure if this function meets your requirement.
In “RenderTexture Test”, you can draw the screen by your finger, than click “save” on top-right corner.