- Timestamp:
- 10/21/08 16:04:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h
r3051 r3054 33 33 bool mCullFaceEnabled; 34 34 35 bool mHasVertexProgram; 36 bool mHasFragmentProgram; 35 //bool mHasVertexProgram; 36 //bool mHasFragmentProgram; 37 ShaderProgram *mVertexProgram; 38 ShaderProgram *mFragmentProgram; 37 39 38 40 /// minimal distance to the camera … … 65 67 */ 66 68 void Enqueue(SceneEntity *entity); 69 /** Enqueues a single shape. 70 */ 71 void Enqueue(Shape *shape); 67 72 /** Sets the current render state 68 73 */ … … 77 82 */ 78 83 void Apply(); 79 84 /** Clears the render queue 85 */ 86 void Clear(); 80 87 81 88 protected: … … 83 90 void Sort(); 84 91 85 void Enqueue(Shape *shape);86 87 92 inline bool FitsInBucket(Shape *shape, size_t idx) const; 88 /** Clears the render queue89 */90 void Clear();91 93 /** Renders the contents of the render queue. 92 94 */ … … 104 106 //SceneEntityContainer mEntities; 105 107 int mMinSizeForSorting; 106 107 108 /// each bucket contains objects with similar materials that don't cause a hard state change 108 109 std::vector<RenderQueueBucket *> mBuckets;
Note: See TracChangeset
for help on using the changeset viewer.