Date: Sun, 08 Mar 1998 23:53:34 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: sos@FreeBSD.ORG Cc: doconnor@gsoft.com.au (Daniel O'Connor), hackers@FreeBSD.ORG Subject: Re: Framebuffer access via libvgl Message-ID: <199803090753.XAA27972@rah.star-gate.com> In-Reply-To: Your message of "Mon, 09 Mar 1998 08:28:04 %2B0100." <199803090728.IAA01897@sos.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Cool, how does this work for Matrox and S3 cards? Tnks, Amancio > In reply to Daniel O'Connor who wrote: > > Hi, > > I was wondering if it was possible to get a pointer to the framebuffer on the > > video card using libvgl, a la svgalib? > > It would be handy for porting svgalib apps :) > > Sure is is, look at the example in /usr/share/examples/libvgl how to > init etc, then you use the structure VGLDisplay which is of type: > > typedef struct { > byte Type; /* type of display buffer ie 8bit planemode etc */ > int Xsize, Ysize; /* size of screen memory */ > byte *Bitmap; /* pointer to start of screen memory */ > } VGLBitmap; > > You want the Bitmap pointer... > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team > Even more code to hack -- will it ever end > .. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803090753.XAA27972>