12/7/93 8:34am.

Well some people may have noticed me rambling about /dev/viewXX and
how X should use it.  Here is an example program that uses /dev/viewXX
to do some graphics and show off the speed of operation.  It is hoped
that someday all graphic cards will go through this interface
so that we have one RTG standard.  We need people to write specific
monitor code for all cards to enable this.

For the time being the custom chips X server can go through views
and therby enable users to dynamically switch between X and
the console.

Anyway the same rules apply here as with the iteconfig I uploaded
recently, I don't include a make. Also you will need to get GNU
getopt source which is available in the uploaded newcc-stuff.tar.gz
(I use the version taken from GNU tar -- long options)

Please notice how short this code is for what it does.

You will be able to run the binary when a kernel is available that
is copmiled to support views. It seems that when Markus grafted
my graphics code into the kernel his mistakenly disabled the view
interface, I have sent markus some mail and it will hopefully be
in the next kernel after 713 source release.

Anyway Enjoy the display when you can.

if your REALLY curiuos to see how this all works you can re-enable
views in the kernel by changing 3 files:

sys/arch/amiga/dev/view.c: get rid of the #if 0 around the #include "view.h"
                           get rid of the #undef NVIEW #define NVIEW 1
sys/arch/amiga/amiga/conf.c: clone the entry for grf change to
                                 cdev_view_init(NVIEW,view)
                             add that at some unused device in the table
                                 below I put in a major 16.
sys/arch/amiga/conf/[SYSTEM] (whatever you use to config with)
                             add an entry at the bottom for
                             psuedo-device view 10 (I create 10 you can
                             do less if you wish.)

then
"mknod /dev/view00 c 16 0"
"mknod /dev/view01 c 16 1"     
...
"mknod /dev/viewXX c 16 XX"  where XX is you last configured view
                             in my case it was 10.

then run "views" included here you can pick types of displays, it
will querry the grf subssytem return what type of colors and how many
that resolution support, then going slow to fast, it will draw a pattern
in different colors into a new view (your console will remain intact
behind this new view, as the current CC console uses view00).

Neat ehy?
Chris.

