Date: Mon, 9 Mar 1998 08:28:04 +0100 (MET) From: Søren Schmidt <sos@FreeBSD.ORG> To: doconnor@gsoft.com.au (Daniel O'Connor) Cc: hackers@FreeBSD.ORG Subject: Re: Framebuffer access via libvgl Message-ID: <199803090728.IAA01897@sos.freebsd.dk> In-Reply-To: <199803090650.RAA15815@cain.gsoft.com.au> from Daniel O'Connor at "Mar 9, 98 05:20:04 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803090728.IAA01897>