Panda3D
queryContext.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file queryContext.cxx
10  * @author drose
11  * @date 2006-03-27
12  */
13 
14 #include "queryContext.h"
15 
16 TypeHandle QueryContext::_type_handle;
17 
18 /**
19  *
20  */
21 QueryContext::
22 ~QueryContext() {
23 }
24 
25 /**
26  * Returns true if the query's answer is ready, false otherwise. If this
27  * returns false, the application must continue to poll until it returns true.
28  *
29  * It is only valid to call this from the draw thread.
30  */
31 bool QueryContext::
32 is_answer_ready() const {
33  return false;
34 }
35 
36 /**
37  * Requests the graphics engine to expedite the pending answer--the
38  * application is now waiting until the answer is ready.
39  *
40  * It is only valid to call this from the draw thread.
41  */
42 void QueryContext::
44 }
virtual void waiting_for_answer()
Requests the graphics engine to expedite the pending answer–the application is now waiting until the ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool is_answer_ready() const =0
Returns true if the query's answer is ready, false otherwise.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81