I've made my own class deriving from SimpleRenderable and after wasting about one hour trying to understand why the render queue priority didn't have any effect on it I found this into Ogre's code
Code: Select all
void SimpleRenderable::_updateRenderQueue(RenderQueue* queue)
{
queue->addRenderable(this, mRenderQueueID, OGRE_RENDERABLE_DEFAULT_PRIORITY);
}
I did this in my derived class and it works just fine.
Code: Select all
void SpriteRenderable::_updateRenderQueue(Ogre::RenderQueue* queue)
{
queue->addRenderable(this, mRenderQueueID, mRenderQueuePriority);
}
Regards.