From owner-freebsd-hackers Sun Mar 8 23:28:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA24020 for freebsd-hackers-outgoing; Sun, 8 Mar 1998 23:28:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA23985 for ; Sun, 8 Mar 1998 23:28:17 -0800 (PST) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.8.8/8.8.8) id IAA01897; Mon, 9 Mar 1998 08:28:04 +0100 (MET) (envelope-from sos) Message-Id: <199803090728.IAA01897@sos.freebsd.dk> Subject: Re: Framebuffer access via libvgl In-Reply-To: <199803090650.RAA15815@cain.gsoft.com.au> from Daniel O'Connor at "Mar 9, 98 05:20:04 pm" To: doconnor@gsoft.com.au (Daniel O'Connor) Date: Mon, 9 Mar 1998 08:28:04 +0100 (MET) Cc: hackers@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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