Path: news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!ihnp4.ucsd.edu!munnari.OZ.AU!news.uwa.edu.au!tartarus.uwa.edu.au!not-for-mail From: jturner@tartarus.uwa.edu.au (Joseph Turner) Newsgroups: comp.sys.apple2.programmer Subject: Re: Polygons in Quickdraw? Date: 12 Apr 1996 16:05:28 GMT Organization: The University of Western Australia Lines: 86 Message-ID: <4klv08$ok4@styx.uwa.edu.au> References: <4kj0jb$4pa@styx.uwa.edu.au> NNTP-Posting-Host: tartarus.uwa.edu.au X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Joseph Turner (jturner@tartarus.uwa.edu.au) wrote: : Hello, I have got myself a bit of spare time, and I have decided to use : it get a little bit more IIgs programming knowledge.I recently was looking : at one of my friends programs(on an IBM..errrr) well anyway, he was using : Polygons. And from his program I can see the power and advantages of using : polygons, for example in 3d graphics. I have looked through the orcadefs : and I can clearly see that there are functions for polygons, but I have no : idea on how to access them. Could anybody supply me with a bit of basic : code or a description on how to use this command/s. : Also what I would love to know what to do is to do flicker free : animation. I would like to do this using two drawing areas...ie screen : flicking. How do I go about this? I tried to use the memory manager to : reserve some memory, but it didn't work. It always crashed. I was loading : in TLTstartup(I think I have spelt this incorrectly, but it is the first : tool you start up), then I started up memory manager, and then I started : up miscellanous tools. Then I tried to reserve $8000bytes.It did work. I : didn't bother reserving 3 pages for quickdraw, could this be my problem? : Well when I get on latter on my IIgs I'll follow up with the code that I : tried. : Thanks for any help. : : Happy computing! : ****************************************************************************** : Joseph Turner : Apple IIgs User, and proud of it. : ****************************************************************************** Here is the assembly code that I was appending to the main c code to try and startup tools and to then allocate some extra memory. case on copy e16.memory mcopy dlog.macros HandleLoc gequ 0 ToolsDP gequ HandleLoc+4 DrawHndLoc gequ ToolsDP+2 Startup start using StartData ;Starting Code phk plb _TLStartUp wordresult _MMstartup pla sta MasterID ora #$0100 sta OurID _MTStartup longresult pushlong #$8000 pushword OurID pushword #0 phd phd _NewHandle pla sta DrawHndLoc pla sta DrawHndLoc + 2 rts end StartData data MasterID ds 2 OurID entry ds 2 GraphicMode equ $00 XClampMax equ 320 end HOpe that helps. thanks. Joe ****************************************************************************** Joseph Turner Apple IIgs User, and proud of it. ******************************************************************************