home *** CD-ROM | disk | FTP | other *** search
- The PVS plugin must be attached before using this function.
- --- RECORDSEPARATOR ---
- \endverbatim
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \param world A pointer to a RpWorld.
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \return The RpPVSProgressCallBack function if sucessful, NULL otherwise.
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \see RpPVSAtomicVisible
- --- RECORDSEPARATOR ---
- * \see RpPVSDestroy
- --- RECORDSEPARATOR ---
- * \see RpPVSHook
- --- RECORDSEPARATOR ---
- * \see RpPVSPluginAttach
- --- RECORDSEPARATOR ---
- * \see RpPVSQuery
- --- RECORDSEPARATOR ---
- * \see RpPVSSetProgressCallBack
- --- RECORDSEPARATOR ---
- * \see RpPVSSetViewPosition
- --- RECORDSEPARATOR ---
- * \see RpPVSStatisticsGet
- --- RECORDSEPARATOR ---
- * \see RpPVSUnhook
- --- RECORDSEPARATOR ---
- * \see RpPVSWorldSectorVisible
- --- RECORDSEPARATOR ---
- */
- --- RECORDSEPARATOR ---
- RpPVSProgressCallBack
- --- RECORDSEPARATOR ---
- RpPVSGetProgressCallBack(RpWorld * world)
- --- RECORDSEPARATOR ---
- {
- --- RECORDSEPARATOR ---
- RWAPIFUNCTION(RWSTRING("RpPVSGetProgressCallBack"));
- --- RECORDSEPARATOR ---
- RWASSERT(world);
- --- RECORDSEPARATOR ---
- if (world)
- --- RECORDSEPARATOR ---
- {
- --- RECORDSEPARATOR ---
- RpPVSCache *pvsCache = PVSCACHEFROMWORLD(world);
- --- RECORDSEPARATOR ---
- if (pvsCache)
- --- RECORDSEPARATOR ---
- {
- --- RECORDSEPARATOR ---
- RWRETURN(pvsCache->progressCallBack);
- --- RECORDSEPARATOR ---
- }
- --- RECORDSEPARATOR ---
- RWERROR((E_RW_NULLP));
- --- RECORDSEPARATOR ---
- RWRETURN((RpPVSProgressCallBack)NULL);
- --- RECORDSEPARATOR ---
- }
- --- RECORDSEPARATOR ---
- RWERROR((E_RW_NULLP));
- --- RECORDSEPARATOR ---
- RWRETURN((RpPVSProgressCallBack)NULL);
- --- RECORDSEPARATOR ---
- }
- --- RECORDSEPARATOR ---
- #include <stdio.h>
- --- RECORDSEPARATOR ---
- #include <stdlib.h>
- --- RECORDSEPARATOR ---
- #include <string.h>
- --- RECORDSEPARATOR ---
- #include <stdarg.h>
- --- RECORDSEPARATOR ---
- #include <math.h>
- --- RECORDSEPARATOR ---
- #include "rpplugin.h"
- --- RECORDSEPARATOR ---
- #include <rwcore.h>
- --- RECORDSEPARATOR ---
- #include <rpworld.h>
- --- RECORDSEPARATOR ---
- #include <rpcollis.h>
- --- RECORDSEPARATOR ---
- #include <rtworld.h>
- --- RECORDSEPARATOR ---
- #include <rtray.h>
- --- RECORDSEPARATOR ---
- #include <rpdbgerr.h>
- --- RECORDSEPARATOR ---
- #include <rppvs310.h>
- --- RECORDSEPARATOR ---
- #include "rppvsdef.h
- --- RECORDSEPARATOR ---
- ppCur = PVSFROMWORLDSECTOR(worldSector);
- --- RECORDSEPARATOR ---
- pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);
- --- RECORDSEPARATOR ---
- }
- --- RECORDSEPARATOR ---
- RWRETURN(ppCur->vismap + pvsCache->sectorCache.vislen * vindex);
- --- RECORDSEPARATOR ---
- }
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \see RpPVSAtomicVisible
- --- RECORDSEPARATOR ---
- * \see RpPVSDestroy
- --- RECORDSEPARATOR ---
- * \see RpPVSGetProgressCallBack
- --- RECORDSEPARATOR ---
- * \see RpPVSPluginAttach
- --- RECORDSEPARATOR ---
- * \see RpPVSQuery
- --- RECORDSEPARATOR ---
- * \see RpPVSSetProgressCallBack
- --- RECORDSEPARATOR ---
- * \param sector A pointer to a RpWorldSector to be determined.
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \return TRUE if visible, FALSE otherwise.
- --- RECORDSEPARATOR ---
- *
- --- RECORDSEPARATOR ---
- * \see RpPVSAtomicVisible
- --- RECORDSEPARATOR ---
- * \see RpPVSDestroy
- --- RECORDSEPARATOR ---
- * \see RpPVSGetProgressCallBack
- --- RECORDSEPARATOR ---
- * \see RpPVSHook
- --- RECORDSEPARATOR ---
- * \see RpPVSPluginAttach
- --- RECORDSEPARATOR ---
- * \see RpPVSQuery
- --- RECORDSEPARATOR ---
- * \see RpPVSSetProgressCallBack
- --- RECORDSEPARATOR ---
- * \see RpPVSSetViewPosition
- --- RECORDSEPARATOR ---
- * \see RpPVSStatisticsGet
- --- RECORDSEPARATOR ---
- * \see RpPVSUnhook
- --- RECORDSEPARATOR ---
- */
- --- RECORDSEPARATOR ---
- ppCur = PVSFROMWORLDSECTOR(worldSector);
- --- RECORDSEPARATOR ---
- pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);
- --- RECORDSEPARATOR ---
- ppCur = PVSFROMWORLDSECTOR(worldSector);
- --- RECORDSEPARATOR ---
- pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);