Changeset 88 for trunk/VUT/work/ogre_changes/RenderSystem/Direct3D9/include
- Timestamp:
- 05/09/05 22:55:21 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/RenderSystem/Direct3D9/include/OgreD3D9HardwareOcclusionQuery.h
r61 r88 71 71 void beginOcclusionQuery(); 72 72 void endOcclusionQuery(); 73 bool pullOcclusionQuery( unsigned int* NumOfFragments); 74 bool pullOcclusionQuery( unsigned int* NumOfFragments, const HW_OCCLUSIONQUERY flag ); 73 bool pullOcclusionQuery( unsigned int* NumOfFragments, const bool waitForResult ); 74 bool pullOcclusionQuery( unsigned int* NumOfFragments, const bool waitForResult, 75 const HW_OCCLUSIONQUERY flag ); 76 75 77 unsigned int getLastQuerysPixelcount() { return m_uintPixelCount; } 76 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 77 bool resultAvailable(); 78 #endif 79 // This functions are optional, it's a simple filter that simply skipps some hardware occlusion tests on visable objects only 78 79 // This functions are optional, it's a simple filter that simply skips some hardware occlusion tests on visable objects only 80 80 // It's easy to use if you don't have to keep track on which objects are visable (can be skipped) and what objects arn't visable.. 81 81 // (None visable objects and object you introduce for the first time have allways to be tested allthough the cheepest possible … … 93 93 94 94 95 void setSkipRate( int skip ) { m_Skip = skip; } // Using 2 only 50 % of the tests are actu lly made and 3 results in only 33% of the tests. So on.95 void setSkipRate( int skip ) { m_Skip = skip; } // Using 2 only 50 % of the tests are actually made and 3 results in only 33% of the tests. So on. 96 96 int getSkipRate() { return m_Skip; } 97 97 … … 100 100 //-- 101 101 protected: 102 103 bool pullOcclusionQuery( unsigned int* NumOfFragments, const bool waitForResult, 104 const DWORD queryFlag ); 102 105 103 106 unsigned int m_uintPixelCount;
Note: See TracChangeset
for help on using the changeset viewer.