comparison 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
comparison
equal deleted inserted replaced
2:59509c585530 3:a92de00f0414
1 package com.aurellem.capture;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import com.jme3.app.Application;
7 import com.jme3.math.ColorRGBA;
8
9 public class Capture {
10
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 }
18
19
20
21
22
23 }