Functions in mmrenderer.h