Hi,
I am trying to implement rather basic "sprites" in GRX (not so complicated that I want to proceed to e.g. Allegro). To this end I'd like to write over, but then *retrieve*, bits of graphics on the screen.
Essentially, I would like a filled box to be drawn on existing screen content, but the existing content to be "saved" somehow and put back on the screen (analogous to conio.h's puttext() and gettext() functions) once the filled box is no longer necessary.
I was hoping perhaps to use GrContexts and GetImageFromContext() for this, but I'm not entirely sure how to go about it. My first few attempts resulted in seg-faults. What is the name of the "default context" that GrSetMode() sets up?
Just a routine that buffers the screen content of the box (x1,y1,x2,y2) would help.
Any help gratefully received.
J-P Stacey