- Timestamp:
- 11/07/08 16:40:53 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h
r3071 r3110 11 11 class Camera; 12 12 13 typedef std::pair<Shape *, Transform3*> ShapePair;13 typedef std::pair<Shape *, SceneEntity *> ShapePair; 14 14 typedef std::vector<ShapePair> ShapePairArray; 15 15 … … 19 19 { 20 20 inline bool IsEmpty() const { return mShapes.empty();} 21 21 22 22 23 //////// … … 41 42 ShaderProgram *mVertexProgram; 42 43 ShaderProgram *mFragmentProgram; 43 44 /// the shapes that belong to a bucket 45 ShapePairArray mShapes; 44 46 /// minimal distance to the camera 45 47 //float mMinDistance; 46 47 /// the shapes that belong to a bucket48 ShapePairArray mShapes;49 48 }; 50 49 … … 69 68 70 69 ~RenderQueue(); 71 /** Enqueues a n entity.70 /** Enqueues all the shapes of an entity. 72 71 */ 73 72 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. 75 74 */ 76 void Enqueue(Shape *shape, Transform3 *trafo);75 void Enqueue(Shape *shape, SceneEntity *containingEnt); 77 76 /** Sets the current render state 78 77 */
Note: See TracChangeset
for help on using the changeset viewer.