1
Development Deliberation /
« on: September 28, 2005, 06:14:22 pm »
yeah,this is my modification:
in pscal3dcallback.h class psCal3DCallbackLoader definition do following modify
csPtr Parse(iDocumentNode * node, iStreamSource* ssource, iLoaderContext * ldr_context, iBase * context);
in pscal3dcallback.cpp modify the Parse implementation function
csPtr psCal3DCallbackLoader::Parse(iDocumentNode * node, iStreamSource* ssource, iLoaderContext * ldr_context, iBase * context)
{
csRef fact;
fact = SCF_QUERY_INTERFACE (context, iMeshObjectFactory);
csRef fcal3dsprite = SCF_QUERY_INTERFACE(fact, iSpriteCal3DFactoryState);
// turn the iBase into an iSpriteCal3DFactoryState so we can use it
//csRef fcal3dsprite = SCF_QUERY_INTERFACE(((iMeshFactoryWrapper *)context)->GetMeshObjectFactory(), iSpriteCal3DFactoryState);
thats all,
in pscal3dcallback.h class psCal3DCallbackLoader definition do following modify
csPtr
in pscal3dcallback.cpp modify the Parse implementation function
csPtr
{
csRef
fact = SCF_QUERY_INTERFACE (context, iMeshObjectFactory);
csRef
// turn the iBase into an iSpriteCal3DFactoryState so we can use it
//csRef
thats all,