nanogui: Microwindows for Hercules


Previous by date: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next by date: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Previous in thread: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next in thread: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr

Subject: RE: Microwindows for Hercules
From: Greg Haerr ####@####.####
Date: 15 Jul 1999 22:30:14 -0000
Message-Id: <01BECEDE.A7DCCE80.greg@censoft.com>

: 
: If someone's really going to take that approach (I assumed something
: like this was already being done), then I recommend modifying it a
: little for speed.  Instead of leaving NULL in the table and having to
: test it each time the function is being called, replace the NULL with
: a function pointer.  This can either be done in the device driver
: directly:
: 
:     struct driver herc_card[]={
:     	herc_hline,
:     	herc_vline,
:     	generic_line,
:     };
: 
	Good idea, Ben.  We certainly take that approach now, if the sources
are checked out.

	Before everybody gets the idea that this all needs rewriting, please look
at device.h, devdraw.c, and the drivers subdirectory.  The current design has
had a lot of thought put into it, and is preparing for the day when bitblt will be
added.  For instance, the mid level performs *all* clipping, not the low level.  Thus,
the low level can't replace the upper level, because there's no access to the
clipping functions.  Certain drivers, namely scr_bogl and scr_bios have commented
out generic functions that will come online in the way above described when
the speed/size tradeoff merits.  A close look at devdraw.c will show commented
out functions, like low level bresenham, that will also come to play.

Greg

Previous by date: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next by date: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Previous in thread: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next in thread: 15 Jul 1999 22:30:14 -0000 Re: Microwindows for Hercules, Greg Haerr


Powered by ezmlm-browse 0.20.