Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 18, 2016, 10:35:11 PM (8 years ago)
Author:
landauf
Message:

fixed author and added some c++11 features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders_merge/src/orxonox/RenderQueueListener.h

    r11074 r11075  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
    24  *      Reto Grieder (physics)
     23 *      David 'davidsa' Salvisberg
    2524 *   Co-authors:
    2625 *      ...
     
    5251    };
    5352
    54     const int STENCIL_VALUE_FOR_GLOW = 1; //!< this is a reference value for our mask,
     53    constexpr int STENCIL_VALUE_FOR_GLOW = 1; //!< this is a reference value for our mask,
    5554                                          //!< if more than one type of stencil mask is to be used, each of them need their own value
    56     const int STENCIL_FULL_MASK = 0xFFFFFFFF; //!< this is a reference mask used in our stencil buffer
     55    constexpr int STENCIL_FULL_MASK = 0xFFFFFFFF; //!< this is a reference mask used in our stencil buffer
    5756   
    5857    /**
     
    8584                In this case we use it to set the stencil buffer parameters of the render system
    8685            */
    87             virtual void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& skipThisInvocation);
     86            virtual void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& skipThisInvocation) override;
    8887            /**
    8988            @brief
     
    9291                in this case we use it to unset the stencil buffer parameters, so the rest of the render queue is unaffected by it.
    9392            */
    94             virtual void renderQueueEnded(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& repeatThisInvocation);
     93            virtual void renderQueueEnded(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& repeatThisInvocation) override;
    9594           
    9695        private:
     
    9897            unsigned int pixelCount_; //!< this stores the last pixel count returned by the last HOQ in the corresponding render group
    9998           
    100             enum PixelState //!< enum to distinguish the several HOQ pixel count states
     99            enum class PixelState //!< enum to distinguish the several HOQ pixel count states
    101100            {
    102101                READY_FOR_RENDER,
Note: See TracChangeset for help on using the changeset viewer.