[info-performer] pfGeoArray::addAttrType incorrect documention - Doc. Needed

Date view Thread view Subject view Author view

From: Devrim Erdem (devrim.erdem++at++gmail.com)
Date: 01/31/2005 04:48:00


Hello,

I am trying to get pfGeoArrays working with generic per vertex
attributes. The man pages say :

static pfVertexAttr* pfGeoArray::addAttrType(char * name, pfFunc
func, GLenum ecs, unsigned short mask);

The header pfGeoArray.h says :

pfVertexAttr* addAttrType(int type,char* name,int stage);

The method is not static anymore and the parameter sets looks quite
different. I need to use the set generic per pixel float data. It is
not clear what type and stage is supposed to be. I assume name is the
name to be used for calling queryAttr().

Would it be possible to shed some light on this method, since the man
pages seem to be completely out of sync ?

Thanks in advance,

P.S. : I also don't see the need for queryAttrType if the addAttrType
is per pfGeoArray rather than being global. Any thoughts on this ? I
assume it would be used like :

geoArray->addAttr( geoArray->addAttrType( ... ), .... );

if the pfVertexAttr is per geo array. I must be misunderstanding this I guess.

Devrim Erdem


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jan 31 2005 - 04:48:15 PST