home *** CD-ROM | disk | FTP | other *** search
/ RenderWare 2003 Press Disc / RenderWare.bin / renderwarestudio / renderwarestudio_presentation.swf / texts / 339.txt < prev    next >
Encoding:
Text File  |  2003-02-25  |  4.0 KB  |  161 lines

  1.    The PVS plugin must be attached before using this function.
  2. --- RECORDSEPARATOR ---
  3.    \endverbatim
  4. --- RECORDSEPARATOR ---
  5.  *
  6. --- RECORDSEPARATOR ---
  7.  * \param world  A pointer to a RpWorld.
  8. --- RECORDSEPARATOR ---
  9.  *
  10. --- RECORDSEPARATOR ---
  11.  * \return The RpPVSProgressCallBack function if sucessful, NULL otherwise.
  12. --- RECORDSEPARATOR ---
  13.  *
  14. --- RECORDSEPARATOR ---
  15.  * \see RpPVSAtomicVisible
  16. --- RECORDSEPARATOR ---
  17.  * \see RpPVSDestroy
  18. --- RECORDSEPARATOR ---
  19.  * \see RpPVSHook
  20. --- RECORDSEPARATOR ---
  21.  * \see RpPVSPluginAttach
  22. --- RECORDSEPARATOR ---
  23.  * \see RpPVSQuery
  24. --- RECORDSEPARATOR ---
  25.  * \see RpPVSSetProgressCallBack
  26. --- RECORDSEPARATOR ---
  27.  * \see RpPVSSetViewPosition
  28. --- RECORDSEPARATOR ---
  29.  * \see RpPVSStatisticsGet
  30. --- RECORDSEPARATOR ---
  31.  * \see RpPVSUnhook
  32. --- RECORDSEPARATOR ---
  33.  * \see RpPVSWorldSectorVisible
  34. --- RECORDSEPARATOR ---
  35.  */
  36. --- RECORDSEPARATOR ---
  37. RpPVSProgressCallBack
  38. --- RECORDSEPARATOR ---
  39. RpPVSGetProgressCallBack(RpWorld * world)
  40. --- RECORDSEPARATOR ---
  41. {
  42. --- RECORDSEPARATOR ---
  43.     RWAPIFUNCTION(RWSTRING("RpPVSGetProgressCallBack"));
  44. --- RECORDSEPARATOR ---
  45.     RWASSERT(world);
  46. --- RECORDSEPARATOR ---
  47.     if (world)
  48. --- RECORDSEPARATOR ---
  49.     {
  50. --- RECORDSEPARATOR ---
  51.         RpPVSCache         *pvsCache = PVSCACHEFROMWORLD(world);
  52. --- RECORDSEPARATOR ---
  53.         if (pvsCache)
  54. --- RECORDSEPARATOR ---
  55.         {
  56. --- RECORDSEPARATOR ---
  57.             RWRETURN(pvsCache->progressCallBack);
  58. --- RECORDSEPARATOR ---
  59.         }
  60. --- RECORDSEPARATOR ---
  61.         RWERROR((E_RW_NULLP));
  62. --- RECORDSEPARATOR ---
  63.         RWRETURN((RpPVSProgressCallBack)NULL);
  64. --- RECORDSEPARATOR ---
  65.     }
  66. --- RECORDSEPARATOR ---
  67.     RWERROR((E_RW_NULLP));
  68. --- RECORDSEPARATOR ---
  69.     RWRETURN((RpPVSProgressCallBack)NULL);
  70. --- RECORDSEPARATOR ---
  71. }
  72. --- RECORDSEPARATOR ---
  73. #include <stdio.h>
  74. --- RECORDSEPARATOR ---
  75. #include <stdlib.h>
  76. --- RECORDSEPARATOR ---
  77. #include <string.h>
  78. --- RECORDSEPARATOR ---
  79. #include <stdarg.h>
  80. --- RECORDSEPARATOR ---
  81. #include <math.h>
  82. --- RECORDSEPARATOR ---
  83. #include "rpplugin.h"
  84. --- RECORDSEPARATOR ---
  85. #include <rwcore.h>
  86. --- RECORDSEPARATOR ---
  87. #include <rpworld.h>
  88. --- RECORDSEPARATOR ---
  89. #include <rpcollis.h>
  90. --- RECORDSEPARATOR ---
  91. #include <rtworld.h>
  92. --- RECORDSEPARATOR ---
  93. #include <rtray.h>
  94. --- RECORDSEPARATOR ---
  95. #include <rpdbgerr.h>
  96. --- RECORDSEPARATOR ---
  97. #include <rppvs310.h>
  98. --- RECORDSEPARATOR ---
  99. #include "rppvsdef.h
  100. --- RECORDSEPARATOR ---
  101.     ppCur = PVSFROMWORLDSECTOR(worldSector);
  102. --- RECORDSEPARATOR ---
  103.     pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);
  104. --- RECORDSEPARATOR ---
  105.     }
  106. --- RECORDSEPARATOR ---
  107.     RWRETURN(ppCur->vismap + pvsCache->sectorCache.vislen * vindex);
  108. --- RECORDSEPARATOR ---
  109. }
  110. --- RECORDSEPARATOR ---
  111.  *
  112. --- RECORDSEPARATOR ---
  113.  * \see RpPVSAtomicVisible
  114. --- RECORDSEPARATOR ---
  115.  * \see RpPVSDestroy
  116. --- RECORDSEPARATOR ---
  117.  * \see RpPVSGetProgressCallBack
  118. --- RECORDSEPARATOR ---
  119.  * \see RpPVSPluginAttach
  120. --- RECORDSEPARATOR ---
  121.  * \see RpPVSQuery
  122. --- RECORDSEPARATOR ---
  123.  * \see RpPVSSetProgressCallBack
  124. --- RECORDSEPARATOR ---
  125.  * \param sector  A pointer to a RpWorldSector to be determined.
  126. --- RECORDSEPARATOR ---
  127.  *
  128. --- RECORDSEPARATOR ---
  129.  * \return TRUE if visible, FALSE otherwise.
  130. --- RECORDSEPARATOR ---
  131.  *
  132. --- RECORDSEPARATOR ---
  133.  * \see RpPVSAtomicVisible
  134. --- RECORDSEPARATOR ---
  135.  * \see RpPVSDestroy
  136. --- RECORDSEPARATOR ---
  137.  * \see RpPVSGetProgressCallBack
  138. --- RECORDSEPARATOR ---
  139.  * \see RpPVSHook
  140. --- RECORDSEPARATOR ---
  141.  * \see RpPVSPluginAttach
  142. --- RECORDSEPARATOR ---
  143.  * \see RpPVSQuery
  144. --- RECORDSEPARATOR ---
  145.  * \see RpPVSSetProgressCallBack
  146. --- RECORDSEPARATOR ---
  147.  * \see RpPVSSetViewPosition
  148. --- RECORDSEPARATOR ---
  149.  * \see RpPVSStatisticsGet
  150. --- RECORDSEPARATOR ---
  151.  * \see RpPVSUnhook
  152. --- RECORDSEPARATOR ---
  153.  */
  154. --- RECORDSEPARATOR ---
  155.     ppCur = PVSFROMWORLDSECTOR(worldSector);
  156. --- RECORDSEPARATOR ---
  157.     pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);
  158. --- RECORDSEPARATOR ---
  159.     ppCur = PVSFROMWORLDSECTOR(worldSector);
  160. --- RECORDSEPARATOR ---
  161.     pvsCache = PVSCACHEFROMCONSTWORLD(rpPVSGlobals.world);