public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (InstantiationException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IllegalAccessException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (UnsupportedLookAndFeelException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

		Screen screen = new Screen(1300, 800);
		final Fachada fachada = new Fachada(screen);

		class Teste implements Runnable {
			private MainFrame frame;
			private Screen screen;

			public Teste(Screen screen) {
				this.screen = screen;
			}

			public void run() {
				try {
					frame = new MainFrame(fachada);
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}

			public MainFrame getFrame() {
				return frame;
			}

			public void setFrame(MainFrame frame) {
				this.frame = frame;
			}

		}

		Teste t = new Teste(screen);

		EventQueue.invokeLater(t);

//		try {
//			Thread.sleep(2000);
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		
//		
//		try {
//			t.getFrame().getFachada().loadFiles("iluminacao.txt", "Objetos/vaso.byu", "Cameras/animais.cfg");
//			t.getFrame().redrawEverything();
//		} catch (FileNotFoundException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}


	}