9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu, djhender@telusplanet.net
Subject: Re: [9fans] ugrading edition 2 graphics to edition 3
Date: Wed,  2 Aug 2000 16:33:10 -0400	[thread overview]
Message-ID: <200008022033.QAA02041@smtp3.fas.harvard.edu> (raw)

The easiest thing at the moment is not to use
the APE -- #include <u.h>, then <libc.h>,
and even <stdio.h> if you want it, and you'll
have a pretty sensible setup.

As far as the panel library goes, there is no
direct replacement.  

As far as converting libg.h to draw.h, the big
difference is that bitblt is replaced by draw, and
while there is some intersection (block copies,
block fills), if you have a program that is heavy
into things like XORing pixels, it will need to be
rethought for the new driver.  There are also
little differences -- add became addpt, etc.

For little graphical programs, there are a 
couple at www.eecs.harvard.edu/~rsc/plan9.html;
look for click.c, bargraph.c, mixer.c, cdplay.tar.gz,
in increasing order of complexity.

As far as file systems, there is a rot13fs.c 
on the same page, which is a 9P filter rather
than a 9P server.  /sys/src/cmd/archfs.c
is a very minimal server but uses a 9P
library to do the dirty work.  /sys/src/cmd/rdbfs.c is a fairly 
simple completely self-contained 9P server.

Russ



             reply	other threads:[~2000-08-02 20:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-02 20:33 Russ Cox [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-08-05  2:27 Anthony Sorace
2000-08-05  2:18 geoff
2000-08-04 17:02 nigel
2000-08-07  8:44 ` Douglas A. Gwyn
2000-08-04  8:25 forsyth
2000-08-03 23:43 kim kubik
2000-08-04  9:12 ` Boyd Roberts
2000-08-04 14:19   ` Andy Newman
2000-08-04 14:37     ` Boyd Roberts
     [not found]       ` <20000805004518.A42947@juju.bsn>
     [not found]         ` <022101bffe66$90ac6640$03c684c3@psychobasketcase.org>
     [not found]           ` <20000805085453.A46136@juju.bsn>
2000-08-04 23:26             ` Boyd Roberts
2000-08-07  8:46               ` Alex Danilo
2000-08-07 13:41                 ` Andy Newman
2000-08-07 20:45                 ` Boyd Roberts
2000-08-03 20:40 forsyth
2000-08-03 20:19 geoff
2000-08-04 16:19 ` Douglas A. Gwyn
2000-08-04 17:06   ` Matt
2000-08-07  8:44     ` Douglas A. Gwyn
2000-08-03 19:13 dhog
2000-08-02 16:53 Anthony Sorace
2000-08-02 14:45 rob pike
2000-08-03  8:20 ` Boyd Roberts
2000-08-03  8:44   ` Doug Henderson
2000-08-03  8:54     ` Boyd Roberts
     [not found]       ` <boyd@noos.fr>
2000-09-11 15:41         ` Tom Duff
2000-08-02 13:23 Doug Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200008022033.QAA02041@smtp3.fas.harvard.edu \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    --cc=djhender@telusplanet.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).