Panda3D
Loading...
Searching...
No Matches
callbackObject.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 callbackObject.cxx
10 * @author drose
11 * @date 2009-03-13
12 */
13
14#include "callbackObject.h"
15
16TypeHandle CallbackObject::_type_handle;
17
18
19/**
20 *
21 */
22void CallbackObject::
23output(std::ostream &out) const {
24 out << get_type();
25}
26
27/**
28 * This method called when the callback is triggered; it *replaces* the
29 * original function. To continue performing the original function, you must
30 * call cbdata->upcall() during the callback.
31 */
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a generic data block that is passed along to a CallbackObject when a callback is made.
virtual void do_callback(CallbackData *cbdata)
This method called when the callback is triggered; it *replaces* the original function.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81