Changeset 9422 for code/branches/shaders/src/orxonox/graphics/Model.cc
- Timestamp:
- Oct 29, 2012, 5:00:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/shaders/src/orxonox/graphics/Model.cc
r9407 r9422 36 36 #include "core/XMLPort.h" 37 37 #include "Scene.h" 38 #include "RenderQueueListener.h" 38 39 #include "graphics/MeshLodInformation.h" 39 40 #include "Level.h" … … 74 75 XMLPortParam(Model, "material", setMaterial, getMaterial, xmlelement, mode); 75 76 XMLPortParam(Model, "shadow", setCastShadows, getCastShadows, xmlelement, mode).defaultValues(true); 77 } 78 79 /** 80 @brief 81 This function turns a string from XML Port into a usable ID for the rendering system 82 It defaults to the main queue if the group isn't recognized. 83 84 @param renderQueueGroup 85 This is a string representing the render queue group. Accepted values: 86 'main', 'stencil glow', 'stencil object' 87 */ 88 const unsigned int Model::getRenderQueueGroupID(const std::string& renderQueueGroup) const 89 { 90 if(renderQueueGroup.compare("stencil glow")==0) 91 { 92 return RENDER_QUEUE_STENCIL_GLOW; 93 } 94 if(renderQueueGroup.compare("stencil object")==0) 95 { 96 return RENDER_QUEUE_STENCIL_OBJECTS; 97 } 98 return RENDER_QUEUE_MAIN; 76 99 } 77 100 … … 107 130 this->attachOgreObject(this->mesh_.getEntity()); 108 131 this->mesh_.getEntity()->setCastShadows(this->bCastShadows_); 132 this->mesh_.getEntity()->setRenderQueueGroup(this->renderQueueGroup_); 109 133 this->mesh_.setVisible(this->isVisible()); 110 134
Note: See TracChangeset
for help on using the changeset viewer.