view src/com/aurellem/capture/Capture.java @ 4:edaa7e7806e4

migrated IsoTimer
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 12:03:01 -0700
parents a92de00f0414
children 5dfc9e768816
line wrap: on
line source
1 package com.aurellem.capture;
3 import java.io.File;
4 import java.io.IOException;
6 import com.jme3.app.Application;
7 import com.jme3.math.ColorRGBA;
9 public class Capture {
11 public static void SimpleCaptureVideo(Application app, File file) throws IOException{
12 app.getViewPort().setClearFlags(true, true, true);
13 app.getViewPort().setBackgroundColor(ColorRGBA.Black);
14 AVIVideoRecorder videoRecorder = new AVIVideoRecorder(file);
15 app.getStateManager().attach(videoRecorder);
16 app.getViewPort().addFinalProcessor(videoRecorder);
17 }
23 }