Switch statement for switching renderers