code: public static void setRenderer(int type) {
  		switch (type) {
  			case IMMEDIATE_RENDERER:
  				setRenderer(new ImmediateModeOGLRenderer());
  				return;
  			case VERTEX_ARRAY_RENDERER:
  				setRenderer(new VAOGLRenderer());
  				return;
  		}
  		
  		throw new RuntimeException("Unknown renderer type: "+type);
  	}
docs: Set the renderer to one of the known types
  
  @param type The type of renderer to use