Path: utzoo!utgpu!cunews!bcars8!bnrgate!bigsur!bnr-rsc!bcarh332!aclark From: aclark@bcarh332.bnr.ca (Alexa Clark) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C 4.0 & 32 Bit Quickdraw Message-ID: <3156@bnr-rsc.UUCP> Date: 30 May 90 12:30:42 GMT References: <13025@wpi.wpi.edu> <1100@manta.NOSC.MIL> <15018@reed.UUCP> Sender: news@bnr-rsc.UUCP Reply-To: aclark@bcarh332.UUCP (Alexa Clark) Organization: BNR Ottawa, Canada Lines: 35 In article <15018@reed.UUCP> orpheus@reed.UUCP (Aaron Semplers) writes: >| arichard@manta.nosc.mil.UUCP (Adam W. Richardson) writes: >| >| I am using THINK C 4.0 and I'm trying to access the routines in >| 32-bit quickdraw (specifically I need to create an offscreen >| GWorld--if anyone has already done this and has sample code >| I'd be VERY interested in seeing it), but I don't think >| I have the appropriate header files. > >I tried to use the 32-bit QuickDraw routines for offscreen worlds. I >had the docs on the Develop CD and a good understanding of pixmaps on >my side. I had a weekend in which to get the code written. And I had >absolutely no success. > I have used the 32-bit QuickDraw offscreen stuff, with some success. I have however been using MPW C (3.1) on system 6.0.5 on MacIIx. This may seem like useless additional info. But I found that some of the offscreen stuff messed up on the MacCI. (this maybe because of interaction with a video card I have as well) But using "NewGWorld" and defining appropriate pixel depths..(0 for use what the screen is), and a nil pointer for devicehandle, 0 for flags, and nil pointer for colour table.....it should set it up correctly. Remember though...and this got me, so maybe I'm dumb. the DEVICEHANDLE IN THE PARAMETERS FOR NewGWorld IS NEVER USED, to set the device to offscreen setPort to the GWorldPtr. hope this helps. alexa. 1 mistake & it all turns bitchy, listen to records by Lionel Richie, I'm not sure if he deserves it, I wonder if we do. - Jazz Butcher. Alexa Clark, BNR, Ottawa, ON. (613) 765 4998. ..uunet!bnrgate!bcarh332!aclark AppleLink: cda0119.