Ignore:
Timestamp:
10/20/05 18:49:11 (19 years ago)
Author:
mattausch
Message:

added switch between NV and ARB queries in the render system and in the demos.
Fixed render queue bug: when clearing queue, we traversed through all priority groups
to clear the passmaps. This became very slow because had to traverse many elements (over 1000
for city demo). Now all we destroy the priority groups for each rendering (per hierarchy node).

File:
1 edited

Legend:

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

    r193 r343  
    202202#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    203203         
    204                 /** Clears solids in this group of renderables. Leaves transparents in group. 
    205         */ 
    206         void clearSolids(void); 
    207  
    208204                enum {SOLID_PASSES = 1, 
    209205                          SOLID_PASSES_DECAL = 2, 
     
    221217                */ 
    222218                void clear(const int leavePassesInQueue); 
     219                /** Destroys passes determined by parameter. 
     220                        @param passes can be one or several (combined by |) of: 
     221                        SOLID_PASSES  
     222                        SOLID_PASSES_DECAL  
     223                        SOLID_PASSES_DIFFUSE_SPECULAR 
     224                        SOLID_PASSES_NOSHADOW 
     225                        TRANSPARENT_PASSES 
     226                */ 
     227                void destroyPassMaps(const int leavePassesInQueue); 
     228 
    223229#endif // GTP_VISIBILITY_MODIFIED_OGRE           
    224230        /** Sets whether or not the queue will split passes by their lighting type, 
     
    337343 
    338344        } 
    339                 /** Clears only solid renderables. Leaves transparents in queue. */ 
    340                 void clearSolids(void) 
     345         
     346                void destroyPasses(int passes) 
    341347        { 
    342348            PriorityMap::iterator i, iend; 
     
    344350            for (i = mPriorityGroups.begin(); i != iend; ++i) 
    345351            { 
    346                 i->second->clearSolids(); 
    347             } 
     352                i->second->destroyPassMaps(passes); 
     353            } 
     354 
    348355        } 
    349356#endif // GTP_VISIBILITY_MODIFIED_OGRE           
Note: See TracChangeset for help on using the changeset viewer.