All of renderer functions are exported to script
Added faster primitive array type for scripting