Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!shanega From: shanega@athena.mit.edu (Shane G. Artis) Newsgroups: comp.sys.next Subject: Gstate switching Message-ID: <1991Apr28.204218.14130@athena.mit.edu> Date: 28 Apr 91 20:42:18 GMT Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 13 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