15 #include "geomDrawCallbackData.h"
16 #include "cullableObject.h"
17 #include "graphicsStateGuardianBase.h"
26 void GeomDrawCallbackData::
27 output(ostream &out)
const {
28 out << get_type() <<
"(" << (
void *)_obj <<
", " << (
void *)_gsg
29 <<
", " << _force <<
")";
48 if (_obj->_geom != (
Geom *)NULL) {
51 _gsg->clear_state_and_transform();
54 _obj->_geom->
draw(_gsg, _obj->_munger, _obj->_munged_data, _force,
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
void draw(GraphicsStateGuardianBase *gsg, bool force, Thread *current_thread)
Draws the cullable object on the GSG immediately, in the GSG's current state.
A container for geometry primitives.
virtual void upcall()
You should make this call during the callback if you want to continue the normal rendering function t...
TypeHandle is the identifier used to differentiate C++ class types.