Changeset 115 for trunk/VUT/work/ogre_changes/OgreMain/src
- Timestamp:
- 05/30/05 03:20:23 (19 years ago)
- Location:
- trunk/VUT/work/ogre_changes/OgreMain/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/OgreMain/src/OgreSceneManager.cpp
r99 r115 59 59 #include "OgreDataStream.h" 60 60 #include "OgreStaticGeometry.h" 61 #include <windows.h> //matt: remove later 61 62 62 // This class implements the most basic scene manager 63 63 … … 665 665 if (lastUsedVertexProgram) 666 666 { 667 //matt: remove later668 //OutputDebugString("unbinding vertex program\n");669 670 667 mDestRenderSystem->unbindGpuProgram(GPT_VERTEX_PROGRAM); 671 668 lastUsedVertexProgram = false; … … 990 987 const String& groupName) 991 988 { 992 mSkyPlaneEnabled = enable;993 989 if (enable) 994 990 { … … 1061 1057 1062 1058 } 1059 mSkyPlaneEnabled = enable; 1063 1060 } 1064 1061 //----------------------------------------------------------------------- … … 1071 1068 const String& groupName) 1072 1069 { 1073 mSkyBoxEnabled = enable;1074 1070 if (enable) 1075 1071 { … … 1143 1139 1144 1140 } 1145 1141 mSkyBoxEnabled = enable; 1146 1142 } 1147 1143 //----------------------------------------------------------------------- … … 1157 1153 const String& groupName) 1158 1154 { 1159 mSkyDomeEnabled = enable;1160 1155 if (enable) 1161 1156 { … … 1164 1159 { 1165 1160 OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, 1166 "Sky dome material '" + materialName + " not found.",1161 "Sky dome material '" + materialName + "' not found.", 1167 1162 "SceneManager::setSkyDome"); 1168 1163 } … … 1208 1203 1209 1204 } 1205 mSkyDomeEnabled = enable; 1210 1206 } 1211 1207 //----------------------------------------------------------------------- … … 2658 2654 { 2659 2655 Light* l = i->second; 2656 if (l->isVisible()) 2657 { 2660 2658 if (l->getType() == Light::LT_DIRECTIONAL) 2661 2659 { … … 2675 2673 2676 2674 } 2675 } 2677 2676 } 2678 2677 … … 4180 4179 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 4181 4180 //----------------------------------------------------------------------- 4182 void SceneManager::_renderSceneNode( Camera *cam, SceneNode *node)4181 void SceneManager::_renderSceneNode(Camera *cam, SceneNode *node, bool leaveTransparentsInQueue) 4183 4182 { 4184 4183 node->_findVisibleObjects(cam, getRenderQueue(), false, mDisplayNodes, false); … … 4186 4185 4187 4186 // delete all rendered objects from renderqueue 4188 _deleteRenderedQueueGroups( );4189 } 4190 //----------------------------------------------------------------------- 4191 void SceneManager::_deleteRenderedQueueGroups( )4187 _deleteRenderedQueueGroups(leaveTransparentsInQueue); 4188 } 4189 //----------------------------------------------------------------------- 4190 void SceneManager::_deleteRenderedQueueGroups(bool leaveTransparentsInQueue) 4192 4191 { 4193 4192 RenderQueue::QueueGroupIterator queueIt = getRenderQueue()->_getQueueGroupIterator(); … … 4200 4199 4201 4200 if (isRenderQueueToBeProcessed(qId)) 4201 { 4202 if (leaveTransparentsInQueue) 4203 { 4204 pGroup->clearSolids(); 4205 } 4206 else 4207 { 4202 4208 pGroup->clear(); 4209 } 4210 } 4203 4211 } 4204 4212
Note: See TracChangeset
for help on using the changeset viewer.