Re: [cc65] Graphics library

Date view Thread view Subject view

From: M Ancher (ancher_at_ancher.org)
Date: 2001-08-13 22:09:29


On Mon, Aug 13, 2001 at 09:11:00PM +0200, Ullrich von Bassewitz wrote:
> I'm currently writing a first version of the graphics.h header file. If you
> have any more suggestions, please keep them coming. I will leave for a few
> days tomorrow and finish the API when I'm back, using your comments.

To be honest, functions like putpixel(int x, int y) are kinda useless.

I think most people could use functions that write a whole block of memory.
The function could be
void drawMemBlock(int xPos, int yPos, int width, int height, int* memLocation).

"memLocation" should have the format of simple 2-bit graphics. One bit per
pixel.

The routine would be quite simple as bytes could be copied directly if
(xPos % 8) == 0, else the byte has to be rotated first. (This is very
simplified, but I do not think it is a complicated routine.)

Secondly I think this routine would be very fast compared to putPixel(x, y).

I think people will often need to display some small graphics than display
lines or cicles, if graphics-routines existed.

/Martin Ancher <ancher_at_ancher.org>
http://ancher.org/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET