> > 2) While looking at the GGI API it struck me that there is ggiPutHLine,
> > ggiGetHline, ggiPutVline, ggiGetVline.
> > Why isn't there a ggiPutLine ggiGetLine?
>
> What would you need that for ?
I can see why it wasn't included before. It seems stupid. I agree. Perhaps even
petty. Either way in order to help familiarize myself with the ggi library I wrote
three library functions to execute this.
int ggiGetLineLength(..start, ..end, int* len);
int ggiGetLine(..start, ..end, int len, void* buf);
int ggiPutLine(..start, ..end, int len, void* buf);
Then I wrote a little program which draws a picture and then gets a diagonal line
across it.
ggiGetLine(start, end, len, buf);
then plots the diagonal line horizontally:
ggiPutVLine(...., buf);
then plots it vertically:
ggiPutHline(.., buf);
Thus creating functionality that hadn't previously existed. ..For what it's worth.
If you want to look at it, I would be happy to send the files to you. No biggy.
Lee
--
Get your free email from www.linuxmail.org
Powered by Outblaze