Date: Wed, 28 Jan 1998 18:50:15 -0800 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: joelh@gnu.org Cc: tlambert@primenet.com, dag-erli@ifi.uio.no, hackers@FreeBSD.ORG Subject: Re: Graphical screen saver Message-ID: <11464.886042215@time.cdrom.com> In-Reply-To: Your message of "Wed, 28 Jan 1998 20:09:50 CST." <199801290209.UAA03840@detlev.UUCP>
next in thread | previous in thread | raw e-mail | index | archive | help
> Remember, I'm mostly writing a template here. My code handles the > mode switching, syscons interface, etc. and calls hacker-defined > routines for variable initialization and the actual drawing. (The > actual drawing is currently handled by direct memory writes.) I'm not It would be nice if, at the very minimum, you supplied some minimum routines/macros for talking to this memory region, perhaps like this: typedef unsigned int scr_char; // char + color + attributes + fut. expansion str_char a_scr_char(char *color, u_int attrs, char ch); scr_char scr_getchar(int x, int y); void scr_putchar(int x, int y, str_char ach); /* Accessors: Possibly inline, possibly macros */ char *scr_char_color(str_char sch); u_int scr_char_attrs(str_char sch); char scr_char_ch(str_char sch); This would sort of give you your "getpixel()/putpixel()" equivalent interface for implementing the higher-level line, rectangle, circle, etc. drawing primitives which screen-saver writers would probably much rather use. Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11464.886042215>