Panda3D
 All Classes Functions Variables Enumerations
queryContext.cxx
00001 // Filename: queryContext.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 "queryContext.h"
00016 
00017 TypeHandle QueryContext::_type_handle;
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: QueryContext::Destructor
00021 //       Access: Public, Virtual
00022 //  Description: 
00023 ////////////////////////////////////////////////////////////////////
00024 QueryContext::
00025 ~QueryContext() {
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: QueryContext::is_answer_ready
00030 //       Access: Public, Virtual
00031 //  Description: Returns true if the query's answer is ready, false
00032 //               otherwise.  If this returns false, the application
00033 //               must continue to poll until it returns true.
00034 //
00035 //               It is only valid to call this from the draw thread.
00036 ////////////////////////////////////////////////////////////////////
00037 bool QueryContext::
00038 is_answer_ready() const {
00039   return false;
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: QueryContext::waiting_for_answer
00044 //       Access: Public, Virtual
00045 //  Description: Requests the graphics engine to expedite the pending
00046 //               answer--the application is now waiting until the
00047 //               answer is ready.
00048 //
00049 //               It is only valid to call this from the draw thread.
00050 ////////////////////////////////////////////////////////////////////
00051 void QueryContext::
00052 waiting_for_answer() {
00053 }
 All Classes Functions Variables Enumerations