C Graphics Tutorial
kmidtset at c2i.net
Mon May 12 10:05:46 PDT 2003
On Monday, 12 May 2003 at 21:45:23 +0800, Katinka Mills wrote:
> > -----Original Message-----
> > From: Malcolm Kay [mailto:Malcolm.Kay at internode.on.net]
> > Sent: Monday, 12 May 2003 8:05 PM
> > To: Katinka Mills; freebsd-questions
> > Subject: Re: C Graphics Tutorial
> > On Mon, 12 May 2003 20:27, Katinka Mills wrote:
> > > > -----Original Message-----
> > > > From: pischelletto [mailto:pischelletto2000 at yahoo.com]
> > > > Sent: Monday, 12 May 2003 2:43 PM
> > > > To: Katinka Mills
> > > > Cc: freebsd-questions
> > > > Subject: Re: C Graphics Tutorial
> > > >
> > > > > I am not after making great 3D Graphics or any stuff
> > > > > like that, just simple
> > > > > graphics like make the screen blue, put a boarder
> > > > > around etc etc.
> > > >
> > > > try to use allegro or sdl, there are very popular
> > > > multiplatform graphic library.
> > > > On the official site you can find also many links
> > > > to various tutorial.
> > > > http://www.talula.demon.co.uk/allegro/
> > > > http://www.libsdl.org/index.php
> > >
> > > From what I see, these are ment for running under X
> > >
> > > all I want to do is make a program that uses graphics like "sysinstall"
> > > does, nothing flash.
> > >
> > I believe cusrses/ncurses may be what you want -- but no
> > geometrical shapes.
> > Take a look at:
> > # man ncurses
> > Malcolm
> Thanks Malcolm
> This looks exactly like what I was after :o) (I just want to make a program
> that I wrote (to exercise a Parallel port for development of a parallel port
> interface for DMX 512 (watchout for my FreeBSD lighting desk :o) (and home
> automation software) ;o)
I have been playing around with home automation and FreeBSD also.
My approach has been to write programs in C or PHP4 scripts that run as
daemons or as cron jobs. These programs generates html pages. I use gd2 under PHP4
and MRTG to generate graphic curves. Now I can take up any of the generated pages using
any web browser. I believe this approach saves me on development time, and adds
extra flexibility. I can read my electric meter regardless of where I am in the
world and report the reading back to my electric company on the first of
Regards from Kjell
More information about the freebsd-questions