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
Files:
10 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} 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h

    r193 r316  
    208208        int mDepth; 
    209209         
    210  
    211210#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    212211}; 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctreeSceneManager.h

    r193 r316  
    261261 
    262262#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    263         /* the number of nodes in the octree. do not confuse this with the OctreeNode 
    264         class with is derived from SceneNode. 
     263        /** The number of nodes in the octree. 
     264                @remark counts the octree hierarchy nodes in the tree. 
    265265        */ 
    266         int mNumOctreeNodes; 
     266        int mNumOctants; 
    267267#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    268268 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreTerrainRenderable.h

    r193 r316  
    4949 
    5050#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    51 #define MAX_RENDERLEVEL_INDEX 15 
     51#define MAX_RENDERLEVEL_INDEX 15 // maximal different number of render levels, e.g., used for chc 
    5252#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    5353 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp

    r193 r316  
    108108        else 
    109109                mDepth = 0; 
    110  
     110        // update bounds because we want tight octree 
    111111        _updateBounds(); 
     112         
    112113#endif //GTP_VISIBILITY_MODIFIED_OGRE 
    113114    mNumNodes = 0; 
     
    133134 
    134135    mParent = 0; 
     136 
    135137} 
    136138 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp

    r158 r316  
    318318 
    319319#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    320         mNumOctreeNodes = 1; // count number of octants 
     320        mNumOctants = 1; // initialise number of octants in tree 
    321321#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    322322 
     
    470470            octant -> mChildren[ x ][ y ][ z ] = new Octree( octant ); 
    471471#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    472         ++ mNumOctreeNodes; 
     472                        ++ mNumOctants; 
    473473#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    474474 
  • trunk/VUT/work/ogre_changes/RenderSystems/GL/src/OgreGLRenderSystem.cpp

    r193 r316  
    23282328            glDisableVertexAttribArrayARB_ptr(1); // disable weights 
    23292329        } 
    2330 #ifndef GTP_VISIBILITY_MODIFIED_OGRE 
    2331         glColor4f(1,1,1,1); 
    2332 #else 
    2333                 glColor4ub(mColour[0], mColour[1], mColour[2], mColour[3]); 
    2334 #endif  // GTP_VISIBILITY_MODIFIED_OGRE 
    23352330 
    23362331        glSecondaryColor3fEXT_ptr(0.0f, 0.0f, 0.0f); 
Note: See TracChangeset for help on using the changeset viewer.