/** * Pushes the transform matrix onto the specified draw context. * @param dc the draw context. */ protected void drawBegin(DrawContext dc) { super.drawBegin(dc); dc.pushLocalToWorld(_transform); glPushMatrix(); glMultMatrixd(_transform.m,0); }
/** * Pushes the view-dependent transform onto the specified draw context. * @param dc the draw context. */ protected void drawBegin(DrawContext dc) { super.drawBegin(dc); Matrix44 transform = computeTransform(dc); dc.pushLocalToWorld(transform); glPushMatrix(); glMultMatrixd(transform.m,0); }