public static void main(String[] args){
		Display d = new Display(1000,800,"Software Renderer - Running: " + args[0]);
		Bitmap target = d.getFrameBuffer();
		StarfieldRenderer sr = null;
		if(args[0].equalsIgnoreCase("starfield"))
			sr = new StarfieldRenderer(Integer.parseInt(args[1]), (float)Integer.parseInt(args[2]), (float)Integer.parseInt(args[3]));
		LineRenderer lr = null;
		if(args[0].equalsIgnoreCase("lines"))
			lr = new LineRenderer(Integer.parseInt(args[1]));
		long previousTime = System.nanoTime();
		int frames = 0;
		float time = 0;
		while(true){
			long currentTime = System.nanoTime();
			float delta = (float)((currentTime-previousTime)/1000000000.0);
			if(args[0].equalsIgnoreCase("starfield"))
				sr.updateRender(target, delta);
			if(args[0].equalsIgnoreCase("lines"))
				lr.updateRender(target, delta);
			d.SwapBuffers();
			frames++;
			time+=delta;
			if(time>=1){
				time = 0;
				System.out.println("FPS: " + frames);
				frames = 0;
			}
			previousTime = currentTime;
		}
	}