00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "geomDrawCallbackData.h"
00016
00017 TypeHandle GeomDrawCallbackData::_type_handle;
00018
00019
00020
00021
00022
00023
00024 void GeomDrawCallbackData::
00025 output(ostream &out) const {
00026 out << get_type() << "(" << (void *)_obj << ", " << (void *)_gsg
00027 << ", " << _force << ")";
00028 }
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 void GeomDrawCallbackData::
00044 upcall() {
00045
00046 if (_obj->_geom != (Geom *)NULL) {
00047 if (_lost_state) {
00048
00049 _gsg->clear_state_and_transform();
00050 }
00051
00052 _obj->_geom->draw(_gsg, _obj->_munger, _obj->_munged_data, _force,
00053 Thread::get_current_thread());
00054 }
00055 }