Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!itsgw!brspyr1!tim From: tim@brspyr1.BRS.Com (Tim Northrup) Newsgroups: comp.sys.atari.st Subject: Re: Sozobon C: I need graphics ability! How to? Message-ID: <5377@brspyr1.BRS.Com> Date: 2 Feb 89 18:12:27 GMT References: <23385@watmath.waterloo.edu> Distribution: comp Organization: BRS Information Technologies, Latham NY Lines: 35 From an article by mwtilden@watmath.waterloo.edu (M.W.Tilden, Hardware): > I recently got Sozobon all loaded and was annoyed to discover that > the documentation makes NO MENTION of how to execute graphics! > > Ideally, all I need is a clear_scrn command along with point, line, > frame, polygon, text and arc (and the permutations therein). > > If anybody's got a sample program which can do any of this, could > they please send me compilable source. Sozobon is just the compiler. To do graphics you need library of suitable routines. On the ST, graphics are usually done using the VDI which is a set of graphics primitives held in the ROM's. To get at the VDI you need a set of bindings in a library. You have a couple of choices to get these bindings: * Get ahold of the GEMQ libraries. This is a set of AES and VDI bindings for Sozobon C (actually, I think they were written for Alcyon, but they work). I got my copy off of GEnie, but check around, it's probably in other places as well. * Write your own -- using documentation on the VDI calls (I used Compute's Tech Ref -- Vol.1) it's pretty easy to write your own C bindings for them. I started to do my own and had pretty good success, but then GEMQ came around and I quit on mine. > Thanx in advance. You're welcome. -- Tim Northrup +------------------------------------------+ +---------------------------------+ GEnie: T.Northrup | UUCP: uunet!steinmetz!brspyr1!tim | Air Warrior: "Duke" | ARPA: tim@brspyr1.BRS.Com +------------------------------------------+