Changeset 159 for trunk/VUT/work/ogre_changes/Plugins
- Timestamp:
- 07/06/05 17:52:44 (20 years ago)
- Location:
- trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreTerrainRenderable.h
r154 r159 299 299 300 300 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 301 // index of renderlevel used for current pass302 static int getCurrentRenderLevelIndex();303 // returnsindex of renderlevel304 static void setCurrentRenderLevelIndex(int index);301 // resets index of renderlevel used for current pass 302 static void ResetRenderLevelIndex(); 303 // next index of renderlevel 304 static void NextRenderLevelIndex(); 305 305 #endif // GTP_VISIBILITY_MODIFIED_OGRE 306 306 -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreTerrainRenderable.cpp
r154 r159 1501 1501 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 1502 1502 //----------------------------------------------------------------------- 1503 int TerrainRenderable::getCurrentRenderLevelIndex()1503 void TerrainRenderable::ResetRenderLevelIndex() 1504 1504 { 1505 return msCurrentRenderLevelIndex;1505 msCurrentRenderLevelIndex = 0; 1506 1506 } 1507 1507 //----------------------------------------------------------------------- 1508 void TerrainRenderable:: setCurrentRenderLevelIndex(int index)1508 void TerrainRenderable::NextRenderLevelIndex() 1509 1509 { 1510 if (index > MAX_RENDERLEVEL_INDEX) 1511 index = 0; 1512 1513 msCurrentRenderLevelIndex = index; 1510 if ((++ msCurrentRenderLevelIndex) > MAX_RENDERLEVEL_INDEX) 1511 msCurrentRenderLevelIndex = 0; 1514 1512 } 1515 1513 #endif // GTP_VISIBILITY_MODIFIED_OGRE
Note: See TracChangeset
for help on using the changeset viewer.