Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2012, 5:32:00 PM (12 years ago)
Author:
davidsa
Message:

orxonox::RenderQueueListener: Implemented a rudimentary RenderQueueListener to enable the use of stencil buffer for elaborate alpha blending shaders without creating artifacts from overlapping faces. Also added a XML Port to assign a Model to a certain RenderQueueGroup. Needs to be improved to allow the use of strings for choosing the group instead of a static int which may change in the feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders/src/orxonox/graphics/Model.h

    r9402 r9407  
    3434#include <string>
    3535#include "tools/Mesh.h"
     36#include "RenderQueueListener.h"
    3637#include "worldentities/StaticEntity.h"
    3738
     
    5859                { return this->meshSrc_; }
    5960
     61            //TODO: let this function accept strings instead of ints for the XML Port, so we don't have to rely on static int values which may change in future Ogre revisions
     62            inline void setRenderQueueGroup(const int renderQueueGroup)
     63                { this->renderQueueGroup_ = renderQueueGroup; this->changedRenderQueueGroup(); }
     64            inline const int getRenderQueueGroup() const
     65                { return this->renderQueueGroup_; }
     66
    6067            inline void setCastShadows(bool bCastShadows)
    6168                { this->bCastShadows_ = bCastShadows; this->changedShadows(); }
     
    7178            void registerVariables();
    7279            void changedMesh();
     80            void changedRenderQueueGroup();
    7381            void changedMaterial();
    7482            void changedShadows();
     
    8694            Mesh mesh_;
    8795            bool bCastShadows_;
     96            int renderQueueGroup_;
    8897            std::string materialName_;
    8998
Note: See TracChangeset for help on using the changeset viewer.