Added GLM, primitive drawing functions.