From: Angus Dorbie (dorbie++at++sgi.com)
Date: 05/19/2000 08:55:05
This is just referring to the indes list pointer.
You need to send the address of pointer so it can return a value even if
the value is null. If you send NULL it'll try to write to address 0.
So send a pointer even if it's to something off the stack.
ushort *dummypointer
getBlahBlah(blah, &dummypointer);
You don't allocate data except for the pointer being returned (in my
simple example I get it of the stack) and this will point to the address
of the vertex array created by the loader. The pointer to the actual
vertices is handled the same way, except that you're actually going to
read the returned value and use that data.
Cheers,ANgus.
Larry Ramey wrote:
>
> hi folks,
>
> I would like to change the Texture Coords of a pfGeoSet.
>
> HOW!?!?!??! I have tried this 8 different was, and I either get a seg
> fault of a memory leak.
>
> <man page>
>
> pfGeoSet::getAttrLists returns the attribute and index list base
> pointers. If the gset is non-indexed, send down a dummy ushort
> pointer
> instead of NULL as ilist.
> </end man page>
>
> So do I allocate memory or not? How much? I am really baffled here. I am
> useing a non-indexed set.
>
> -----------------------------------
> Larry E. Ramey ramey++at++ccpo.odu.edu
> 757-683-3439 (CAVE) 757-683-5335 (VEL Lab)
> "I eat weirder things than you in my cereal" - Zaphod Bebblebrox
> "Can't talk to a Psycho like a normal human being" - Poe
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- For Performer+OpenGL tutorials http://www.dorbie.com/"In the middle of difficulty lies opportunity." --Albert Einstein
This archive was generated by hypermail 2b29 : Fri May 19 2000 - 08:55:15 PDT