matfunc=function(idx){
	return function(material){
		this.setMaterial(material,idx);
	}
}
Sets the Material to use
@param {GLGE.Material} material the material to use
@param {number} surface the surface to attach the material to