view src/com/aurellem/capture/Capture.java @ 9:5dfc9e768816

moved files
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Oct 2011 08:54:12 -0700
parents a92de00f0414
children 4c5fc53778c1
line wrap: on
line source
1 package com.aurellem.capture;
3 import java.io.File;
4 import java.io.IOException;
6 import com.aurellem.capture.video.AVIVideoRecorder;
7 import com.jme3.app.Application;
8 import com.jme3.math.ColorRGBA;
10 public class Capture {
12 public static void SimpleCaptureVideo(Application app, File file) throws IOException{
13 app.getViewPort().setClearFlags(true, true, true);
14 app.getViewPort().setBackgroundColor(ColorRGBA.Black);
15 AVIVideoRecorder videoRecorder = new AVIVideoRecorder(file);
16 app.getStateManager().attach(videoRecorder);
17 app.getViewPort().addFinalProcessor(videoRecorder);
18 }
24 }