Often in games I need to draw images to the background screen, and then to keep these changes. For example drawing shapes to the pit in Tetris or destroying the background in a platform game. Gfk - you are right I have been using Pixmaps - First I draw the background image (which is in Pixmap form) to the screen, then I draw the image on this - and then I use GrabPixmap to save the changes to the background screen. What I was thinking though was that it would be more efficient (faster) to draw directly to an image or pixmap without having to use GrabPixmap (which must slow things down a bit?). Some kind of library/module would be good where you have lots of functions to draw images and shapes(rectangles/circles etc) to Pixmaps/images.
Brucey - What's RenderToTexture - is it in one of your modules?
Thanks - Rico
|