[info-performer] pfChannel::setBinSort Issue

New Message Reply Date view Thread view Subject view Author view

From: Devrim Erdem (devrim++at++vires.com)
Date: 08/12/2002 04:18:07


Hi,

setBinSort requires an array of uint64_t's. However the man page has the
following sample code :

       int sortOrders[PFSORT_MAX_KEYS], i = 0;

       sortOrders[i++] = PFSORT_STATE_BGN;
       sortOrders[i++] = PFSTATE_FOG;
       sortOrders[i++] = PFSTATE_MATERIAL;
       sortOrders[i++] = PFSTATE_TEXTURE;
       sortOrders[i++] = PFSORT_STATE_END;
       sortOrders[i++] = PFSORT_END;

       chan->setBinSort(PFSORT_OPAQUE_BIN, PFSORT_BY_STATE, sortOrders);
       chan->setBinSort(PFSORT_TRANSP_BIN, PFSORT_BACK_TO_FRONT, NULL);

which uses PFSORT_END. is defined as PFSORT_END.

#define PFSORT_END -1

This brings in a compiler warning message and makes me think if the code
would work correctly at all. Should PFSORT_END be excluded or should
some other value be assigned to end array ?

Regards,

-- 
Devrim Erdem
-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463640
fax      +49.8031.463645
email    devrim++at++vires.com
internet www.vires.com
-------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Aug 12 2002 - 04:21:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.