Ignore:
Timestamp:
10/10/05 15:23:32 (19 years ago)
Author:
mattausch
Message:

queries are realized as templates

Location:
trunk/VUT/work/ogre_changes/OgreMain
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/ogre_changes/OgreMain/include/OgreRenderSystem.h

    r193 r316  
    947947        virtual Real getMaximumDepthInputValue(void) = 0; 
    948948 
    949 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    950                 /** sets colour. 
    951                 */ 
    952                 void setColour(int r, int g, int b, int a); 
    953 #endif // GTP_VISIBILITY_MODIFIED_OGRE 
    954  
    955949    protected: 
    956950 
     
    990984 
    991985        bool mInvertVertexWinding; 
    992  
    993 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    994                 int mColour[4]; 
    995 #endif // GTP_VISIBILITY_MODIFIED_OGRE 
    996986    }; 
    997987} 
  • trunk/VUT/work/ogre_changes/OgreMain/include/OgreSceneManager.h

    r183 r316  
    136136                */ 
    137137                void _deleteRenderedQueueGroups(int leavePassesInQueue = 0); 
    138                 /** Internal method used by _renderVisibleObjects to deal with renderables 
     138                /** Wrapper for useRenderableViewProjMde with is an  
     139                        Internal method used by _renderVisibleObjects to deal with renderables 
    139140            which override the camera's own view / projection materices.  
    140                         @remark made public by matt  
    141                 */ 
    142         void useRenderableViewProjMode(Renderable* pRend); 
    143                 /** Method for setting up the renderstate for a rendering pass. 
     141                */ 
     142        void useRenderableViewProjModeWrapper(Renderable* pRend); // HACK 
     143                /** HACK: A public wrapper method for setting up the renderstate for a rendering pass. 
    144144            @param 
    145145                pass The Pass details to set. 
     
    149149                        @remark made public by matt 
    150150        */ 
    151         virtual Pass* setPass(Pass* pass); 
     151        virtual Pass* setPassWrapper(Pass* pass); 
    152152 
    153153                /** Renders an Ogre Entity. 
     
    273273        /** Retrieves the internal render queue. */ 
    274274        virtual RenderQueue* getRenderQueue(void); 
    275 #ifndef GTP_VISIBILITY_MODIFIED_OGRE // made public, is found in the modfified section 
     275 
    276276        /** Internal method for setting up the renderstate for a rendering pass. 
    277277            @param 
     
    282282        */ 
    283283        virtual Pass* setPass(Pass* pass); 
    284 #endif 
     284 
    285285        /// A pass designed to let us render shadow colour on white for texture shadows 
    286286        Pass* mShadowCasterPlainBlackPass; 
     
    357357        AnimationList mAnimationsList; 
    358358        AnimationStateSet mAnimationStates; 
    359 #ifndef GTP_VISIBILITY_MODIFIED_OGRE // made public, is found in the modfified section 
     359 
    360360        /** Internal method used by _renderVisibleObjects to deal with renderables 
    361361            which override the camera's own view / projection materices. */ 
    362362        void useRenderableViewProjMode(Renderable* pRend); 
    363 #endif 
     363 
    364364        /// Controller flag for determining if we need to set view/proj matrices 
    365365        bool mCamChanged; 
  • trunk/VUT/work/ogre_changes/OgreMain/src/OgreRenderSystem.cpp

    r150 r316  
    6363        // instanciate RenderSystemCapabilities 
    6464        mCapabilities = new RenderSystemCapabilities(); 
    65  
    66 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    67                 mColour[0] = mColour[1] = mColour[2] = mColour[3] = 255; 
    68 #endif // GTP_VISIBILITY_MODIFIED_OGRE 
    6965    } 
    7066 
     
    420416        } 
    421417    } 
    422 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    423         // ------------------------------------------------------------------ 
    424         void RenderSystem::setColour(int r, int g, int b, int a) 
    425         { 
    426                 mColour[0] = r; 
    427                 mColour[1] = g; 
    428                 mColour[2] = b; 
    429                 mColour[3] = a; 
    430         } 
    431 #endif //  GTP_VISIBILITY_MODIFIED_OGRE 
    432418} 
    433419 
  • trunk/VUT/work/ogre_changes/OgreMain/src/OgreSceneManager.cpp

    r193 r316  
    42004200#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    42014201//----------------------------------------------------------------------- 
     4202Pass* SceneManager::setPassWrapper(Pass* pass) 
     4203{ 
     4204        return setPass(pass); 
     4205} 
     4206//----------------------------------------------------------------------- 
    42024207void SceneManager::_renderSceneNode(Camera *cam, SceneNode *node, const int leavePassesInQueue) 
    42034208{ 
     
    42594264        renderSingleObject(rend, pass, false); 
    42604265} 
     4266//----------------------------------------------------------------------- 
     4267void SceneManager::useRenderableViewProjModeWrapper(Renderable* pRend) 
     4268{ 
     4269        useRenderableViewProjMode(pRend); 
     4270} 
    42614271#endif //GTP_VISIBILITY_MODIFIED_OGRE 
    42624272} 
Note: See TracChangeset for help on using the changeset viewer.