Ignore:
Timestamp:
10/21/08 16:04:27 (16 years ago)
Author:
mattausch
Message:

worked on render queue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h

    r3051 r3054  
    3333        bool mCullFaceEnabled; 
    3434 
    35         bool mHasVertexProgram; 
    36         bool mHasFragmentProgram; 
     35        //bool mHasVertexProgram; 
     36        //bool mHasFragmentProgram; 
     37        ShaderProgram *mVertexProgram; 
     38        ShaderProgram *mFragmentProgram; 
    3739 
    3840        /// minimal distance to the camera 
     
    6567        */ 
    6668        void Enqueue(SceneEntity *entity); 
     69        /** Enqueues a single shape. 
     70        */ 
     71        void Enqueue(Shape *shape); 
    6772        /** Sets the current render state 
    6873        */ 
     
    7782        */ 
    7883        void Apply(); 
    79  
     84        /** Clears the render queue 
     85        */ 
     86        void Clear(); 
    8087 
    8188protected: 
     
    8390        void Sort(); 
    8491 
    85         void Enqueue(Shape *shape); 
    86  
    8792        inline bool FitsInBucket(Shape *shape, size_t idx) const; 
    88         /** Clears the render queue 
    89         */ 
    90         void Clear(); 
    9193        /** Renders the contents of the render queue. 
    9294        */ 
     
    104106        //SceneEntityContainer mEntities; 
    105107        int mMinSizeForSorting; 
    106  
    107108        /// each bucket contains objects with similar materials that don't cause a hard state change 
    108109        std::vector<RenderQueueBucket *> mBuckets; 
Note: See TracChangeset for help on using the changeset viewer.