[comp.sys.next] Gstate switching

shanega@athena.mit.edu (Shane G. Artis) (04/29/91)

I need to switch between graphics states with different setups stored
in each (for example, one might have a linewidth stored as 10 and the
other would have a linewidth of 3 and dashed lines) .  The switch must
be fast and the graphics states must be stored in objects (or
integers) that I can save and pass around as needed.  In addition, I
need to do this using the low-level ps-wrapped functions provided in
the dpsclient include files (such as PSgstate, PScurrentgstate, etc.)
Does anyone have a simple code fragment describing this procedure in
an acceptable way that they can mail to me?

Thanks,

Shane