Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.tech Subject: Re: 3d-look Message-ID: <15859@cbmvax.commodore.com> Date: 14 Nov 90 15:34:01 GMT References: <39661@ut-emx.uucp> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 63 In article <39661@ut-emx.uucp> amiga@ccwf.cc.utexas.edu (Paul) writes: > (I wrote) >>wbPens = {0, 1, 1, 2, 1, 3, 1, 0, 3, ~0}; >> >>Then you would say > >> myscreen = OpenScreenTags(&mynewscreen, >> SA_Pens, wbPens, >> TAG_DONE); > >I am also trying to d this but I am having a few problems. >I have tried my code as stated above and blink gives an >undefined symbol _OpenScreenTags. Do I need to include somthing >else? my includes are as follows You need a 2.0-current version of amiga.lib. Alternately, you can define your own OpenScreenTags(), as follows struct Screen *OpenScreenTags( struct NewScreen *ns, Tag firsttag, ...) { return( OpenScreenTagList( ns, &firsttag ) ); } >The above statement is confusing to me. Do you create a ExtNewScreen >structure with a tag list pointer, that you pass to OpenScreen() and >then set the NS_EXENDED flag? I tried it this way and could not get >it to work either. I think my problem here is I'm not sure how to make >a tag-list for this (or other things). A small code example of a tag >would be helpful. Set the NS_EXTENDED flag in the ExtNewScreen structure before you call OpenScreen(). To make a taglist, you would say: struct TagItem mytags[] = { SA_Pens, (ULONG) mypens, TAG_DONE, 0, /* Need full tagitem, hence 0 after TAG_DONE */ }; struct ExtNewScreen myens = { ... ... | NS_EXTENDED, /* Set the extended flag */ ... /* usual newscreen stuff goes here */ mytags, /* taglist pointer */ }; ... screen = OpenScreen( (struct NewScreen *) myens ); >Amiga@ccwf.cc.utexas.edu .....Paul...... Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "She read him like a book: she liked to peek at his end."