- Timestamp:
- 10/20/08 23:37:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.h
r2848 r3051 17 17 struct RenderQueueBucket 18 18 { 19 / ** should test for all texture format parameters,20 but we as use the same format for all textures they differ only in size21 */19 //////// 20 //-- the attributes used to sort the materials 21 /// texture parameters 22 22 int mTexHeight; 23 23 int mTexWidth; 24 int mTexFormat; 24 25 25 26 bool mHasTexture; 27 28 bool mColorWriteEnabled; 29 bool mDepthWriteEnabled; 30 bool mLightingEnabled; 31 26 32 bool mAlphaTestEnabled; 27 33 bool mCullFaceEnabled; 34 35 bool mHasVertexProgram; 36 bool mHasFragmentProgram; 28 37 29 38 /// minimal distance to the camera 30 39 float mMinDistance; 31 40 41 /// the shapes that belong to a bucket 32 42 ShapeContainer mShapes; 33 43 }; … … 36 46 /** This class implements a render queue that sorts renderable geometry in order 37 47 to minimize state changes while approximately keeping front-to-back order 38 The implementation roughly follows the suggested implemen ation on Tom Forsyth's article39 on render state changes. It requires sorting only on bucket level and therefore has very40 low overhead48 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. 41 51 */ 42 52 class RenderQueue
Note: See TracChangeset
for help on using the changeset viewer.