move some inline functions from modelinterp.cpp to modelrender.h