Mercurial > jmeCapture
annotate 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 |
rev | line source |
---|---|
rlm@3 | 1 package com.aurellem.capture; |
rlm@3 | 2 |
rlm@3 | 3 import java.io.File; |
rlm@3 | 4 import java.io.IOException; |
rlm@3 | 5 |
rlm@3 | 6 import com.jme3.app.Application; |
rlm@3 | 7 import com.jme3.math.ColorRGBA; |
rlm@3 | 8 |
rlm@3 | 9 public class Capture { |
rlm@3 | 10 |
rlm@3 | 11 public static void SimpleCaptureVideo(Application app, File file) throws IOException{ |
rlm@3 | 12 app.getViewPort().setClearFlags(true, true, true); |
rlm@3 | 13 app.getViewPort().setBackgroundColor(ColorRGBA.Black); |
rlm@3 | 14 AVIVideoRecorder videoRecorder = new AVIVideoRecorder(file); |
rlm@3 | 15 app.getStateManager().attach(videoRecorder); |
rlm@3 | 16 app.getViewPort().addFinalProcessor(videoRecorder); |
rlm@3 | 17 } |
rlm@3 | 18 |
rlm@3 | 19 |
rlm@3 | 20 |
rlm@3 | 21 |
rlm@3 | 22 |
rlm@3 | 23 } |