Panda3D
|
00001 // Filename: occlusionQueryContext.cxx 00002 // Created by: drose (27Mar06) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "occlusionQueryContext.h" 00016 00017 TypeHandle OcclusionQueryContext::_type_handle; 00018 00019 //////////////////////////////////////////////////////////////////// 00020 // Function: OcclusionQueryContext::get_num_fragments 00021 // Access: Public, Virtual 00022 // Description: Returns the number of fragments (pixels) of the 00023 // specified geometry that passed the depth test. 00024 // If is_answer_ready() did not return true, this 00025 // function may block before it returns. 00026 // 00027 // It is only valid to call this from the draw thread. 00028 //////////////////////////////////////////////////////////////////// 00029 int OcclusionQueryContext:: 00030 get_num_fragments() const { 00031 return 0; 00032 }