Ignore:
Timestamp:
11/07/08 16:40:53 (16 years ago)
Author:
mattausch
Message:

worked on id for dynamic objects

File:
1 edited

Legend:

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

    r3071 r3110  
    1111class Camera; 
    1212 
    13 typedef std::pair<Shape *, Transform3 *> ShapePair; 
     13typedef std::pair<Shape *, SceneEntity *> ShapePair; 
    1414typedef std::vector<ShapePair> ShapePairArray; 
    1515 
     
    1919{ 
    2020        inline bool IsEmpty() const { return mShapes.empty();} 
     21 
    2122 
    2223        //////// 
     
    4142        ShaderProgram *mVertexProgram; 
    4243        ShaderProgram *mFragmentProgram; 
    43  
     44        /// the shapes that belong to a bucket 
     45        ShapePairArray mShapes; 
    4446        /// minimal distance to the camera 
    4547        //float mMinDistance; 
    46  
    47         /// the shapes that belong to a bucket 
    48         ShapePairArray mShapes; 
    4948}; 
    5049 
     
    6968 
    7069        ~RenderQueue(); 
    71         /** Enqueues an entity. 
     70        /** Enqueues all the shapes of an entity. 
    7271        */ 
    7372        void Enqueue(SceneEntity *entity); 
    74         /** Enqueues a single shape. 
     73        /** Enqueues a single shape. We also have to pass the entity which contains the shape. 
    7574        */ 
    76         void Enqueue(Shape *shape, Transform3 *trafo); 
     75        void Enqueue(Shape *shape, SceneEntity *containingEnt); 
    7776        /** Sets the current render state 
    7877        */ 
Note: See TracChangeset for help on using the changeset viewer.