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