Panda3D
 All Classes Functions Variables Enumerations
queryContext.cxx
1 // Filename: queryContext.cxx
2 // Created by: drose (27Mar06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "queryContext.h"
16 
17 TypeHandle QueryContext::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: QueryContext::Destructor
21 // Access: Public, Virtual
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 QueryContext::
25 ~QueryContext() {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: QueryContext::is_answer_ready
30 // Access: Public, Virtual
31 // Description: Returns true if the query's answer is ready, false
32 // otherwise. If this returns false, the application
33 // must continue to poll until it returns true.
34 //
35 // It is only valid to call this from the draw thread.
36 ////////////////////////////////////////////////////////////////////
37 bool QueryContext::
38 is_answer_ready() const {
39  return false;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: QueryContext::waiting_for_answer
44 // Access: Public, Virtual
45 // Description: Requests the graphics engine to expedite the pending
46 // answer--the application is now waiting until the
47 // answer is ready.
48 //
49 // It is only valid to call this from the draw thread.
50 ////////////////////////////////////////////////////////////////////
51 void QueryContext::
53 }
virtual void waiting_for_answer()
Requests the graphics engine to expedite the pending answer–the application is now waiting until the ...
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:85