Ignore:
Timestamp:
10/20/08 23:37:48 (16 years ago)
Author:
mattausch
Message:

included new material properties (vp, fp) into render queue

File:
1 edited

Legend:

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

    r2848 r3051  
    1717struct RenderQueueBucket 
    1818{ 
    19         /** should test for all texture format parameters,  
    20             but we as use the same format for all textures they differ only in size 
    21         */ 
     19        //////// 
     20        //-- the attributes used to sort the materials 
     21        /// texture parameters 
    2222        int mTexHeight; 
    2323        int mTexWidth; 
     24        int mTexFormat; 
    2425 
    2526        bool mHasTexture; 
     27 
     28        bool mColorWriteEnabled; 
     29        bool mDepthWriteEnabled; 
     30        bool mLightingEnabled; 
     31 
    2632        bool mAlphaTestEnabled; 
    2733        bool mCullFaceEnabled; 
     34 
     35        bool mHasVertexProgram; 
     36        bool mHasFragmentProgram; 
    2837 
    2938        /// minimal distance to the camera 
    3039        float mMinDistance; 
    3140 
     41        /// the shapes that belong to a bucket 
    3242        ShapeContainer mShapes; 
    3343}; 
     
    3646/** This class implements a render queue that sorts renderable geometry in order 
    3747        to minimize state changes while approximately keeping front-to-back order 
    38         The implementation roughly follows the suggested implemenation on Tom Forsyth's article 
    39         on render state changes. It requires sorting only on bucket level and therefore has very 
    40         low overhead 
     48        The implementation roughly follows the suggested implementation in  
     49        Tom Forsyth's article on render state changes. It requires sorting only on  
     50        bucket level and therefore has very     low overhead. 
    4151*/ 
    4252class RenderQueue 
Note: See TracChangeset for help on using the changeset viewer.