From owner-freebsd-hackers Mon Mar 9 02:04:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA11835 for freebsd-hackers-outgoing; Mon, 9 Mar 1998 02:04:04 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA11763; Mon, 9 Mar 1998 02:03:54 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id XAA27972; Sun, 8 Mar 1998 23:53:34 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199803090753.XAA27972@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: sos@FreeBSD.ORG cc: doconnor@gsoft.com.au (Daniel O'Connor), hackers@FreeBSD.ORG Subject: Re: Framebuffer access via libvgl In-reply-to: Your message of "Mon, 09 Mar 1998 08:28:04 +0100." <199803090728.IAA01897@sos.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Sun, 08 Mar 1998 23:53:34 -0800 From: Amancio Hasty Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id CAA11764 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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