[comp.lang.c] Need help with simple graphics on Suns

dmg@ssc-vax.UUCP (David Geary) (09/23/88)

    I am in search of a way to do some basic rasterop functions
inside of a SunWindow under Suntools.  I've skimmed through the
Sun docs (no RTFM, please), and I don't want to use panels, the
notifier, and all that fancy stuff.  All I want is to be able
to do the following in a Sun Window under Suntools:

1)  Draw lines.
2)  Invert rectangular regions on the screen.
3)  Draw graphic text in the window.

    I have developed a set of routines that do "panels" on
a Unix-based machine that only had a very rudimentary set
of *higher* level graphics functions such as those above,
and now I want to port it to the Suns.

    Ideally, I'd prefer someone send me some simple code
that shows how to do any of the above.  I promise to be eternally
gratefull if anyone would send me some code.  If you have
no code, then any info would help. 

Thanx,

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ David Geary, Boeing Aerospace,               ~ 
~ #define    Seattle     RAIN                  ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~