Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 1997 14:45:03 -0500 (EST)
From:      Alex Boisvert <alex@gel.usherb.ca>
To:        Donn Miller <dmm125@bellatlantic.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: libvgl: documentation??
Message-ID:  <Pine.BSF.3.95q.971212143656.3464A-100000@teel.info-noire.com>
In-Reply-To: <Pine.NEB.3.96.971212090031.261A-100000@myname.my.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Dec 1997, Donn Miller wrote:
> Is there any docs on libvgl (for 2.2.5-RELEASE)?  I would like to know how
> to write a basic console-mode graphics program.
> 
> Here is my sample program:
> 
> #include <vgl.h>
> #include <machine/console.h>
> #include <stdio.h>
> #include <vgl.h>
> #include <machine/console.h>
> 
> int main (int argc, char **argv)
> {
>   VGLInit(M_VGA11);
>   VGLBox(NULL, 10, 10, 30 , 30, 1);
>   return 0;
> }
> 
> I couldn't get it to do anything but return me to the prompt.  Or is
> -current required to run this?  Thanks a lot,

When using/trying libvgl, remember that you need read and write access to
/dev/mem.   There's an example in /usr/share/examples/libvgl.
"man libvgl" is your friend.

Alex.

---
FreeBSD:  Decouvrez la puissance de votre PC!  www.freebsd.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.971212143656.3464A-100000>