view src/com/aurellem/capture/Capture.java @ 3:a92de00f0414

migrating files
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 11:55:55 -0700
parents
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 }