object.render(renderer, *this, tag);
}
+void ObjectInstance::setup_render(Renderer &renderer, const Tag &) const
+{
+ renderer.transform(matrix);
+}
+
} // namespace GL
} // namespaec Msp
/** Hook function, called from Object just before rendering the mesh.
Renderer state will have been pushed before this is called. */
- virtual void setup_render(Renderer &, const Tag &) const { }
+ virtual void setup_render(Renderer &, const Tag &) const;
/** Hook function, called from Object right after rendering the mesh. Since
Object takes care of pushing Renderer state, this rarely needs to do