15 #ifndef CPOINTERCALLBACKOBJECT_H
16 #define CPOINTERCALLBACKOBJECT_H
18 #include "pandabase.h"
19 #include "callbackObject.h"
29 typedef void CallbackFunction(
CallbackData *cbdata,
void *data);
31 ALLOC_DELETED_CHAIN(CPointerCallbackObject);
37 CallbackFunction *_func;
44 static void init_type() {
45 CallbackObject::init_type();
46 register_type(_type_handle,
"CPointerCallbackObject",
47 CallbackObject::get_class_type());
50 return get_class_type();
52 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
58 #include "cPointerCallbackObject.I"
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.
This is a specialization on CallbackObject to allow association with a C-style function pointer and a...
This is a generic object that can be assigned to a callback at various points in the rendering proces...
TypeHandle is the identifier used to differentiate C++ class types.