|
From: Roger H. <rog...@mi...> - 2005-02-17 20:42:27
|
On Thursday, February 17, 2005, at 08:15 PM, James W. Walker wrote: > Roger Holmes <rog...@mi...> wrote: > >> As we never actually create any objects of class 'Light', only >> ambient, directional, spot and point lights, >> would it be OK to redefine kQ3ShapeTypeLight to be something like >> 'lghT' with a capital T or 'Lght' ? > > I have some code that uses Q3Group_GetFirstPositionOfType and > Q3Group_GetNextPositionOfType with kQ3ShapeTypeLight, and that will > break if you redefine kQ3ShapeTypeLight. Unless you recompiled with the revised headers but I accept that is not always convenient. > > Here's a possibility: In e3fformat_3dmf_bin_readobject, add a special > case, that checks whether the object type is 'lght' and changes it to > something else like 'lghd'. Yes that would work, not elegant but then Apple using the same ID for two different things is not elegant in the first place. Thanks, Roger. > -- > James W. Walker, ScriptPerfection Enterprises, Inc. > <http://www.write-brain.com/> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Quesa-develop mailing list > Que...@li... > https://lists.sourceforge.net/lists/listinfo/quesa-develop > |