Changeset 86 for trunk/VUT/Ogre/src/OgrePlatformOcclusionQuery.cpp
- Timestamp:
- 05/06/05 01:39:32 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgrePlatformOcclusionQuery.cpp
r59 r86 1 1 #include "OgrePlatformOcclusionQuery.h" 2 2 #include <windows.h> 3 3 namespace Ogre { 4 4 … … 24 24 } 25 25 //----------------------------------------------------------------------- 26 unsigned int PlatformOcclusionQuery::GetQueryResult() const 26 bool PlatformOcclusionQuery::GetQueryResult(unsigned int &visiblePixels, 27 const bool waitForResult) const 27 28 { 28 unsigned int visiblePixels = 0; 29 // wait if result not available 30 mHardwareOcclusionQuery->pullOcclusionQuery(&visiblePixels); 31 32 return visiblePixels; 33 } 34 //----------------------------------------------------------------------- 35 bool PlatformOcclusionQuery::ResultAvailable() const 36 { 37 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 38 return mHardwareOcclusionQuery->resultAvailable(); 39 #else 40 return true; 41 #endif 29 return mHardwareOcclusionQuery->pullOcclusionQuery(&visiblePixels, waitForResult); 42 30 } 43 31
Note: See TracChangeset
for help on using the changeset viewer.