diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/com/aurellem/capture/Capture.java	Tue Oct 25 11:55:55 2011 -0700
     1.3 @@ -0,0 +1,23 @@
     1.4 +package com.aurellem.capture;
     1.5 +
     1.6 +import java.io.File;
     1.7 +import java.io.IOException;
     1.8 +
     1.9 +import com.jme3.app.Application;
    1.10 +import com.jme3.math.ColorRGBA;
    1.11 +
    1.12 +public class Capture {
    1.13 +
    1.14 +	public static void SimpleCaptureVideo(Application app, File file) throws IOException{
    1.15 +		app.getViewPort().setClearFlags(true, true, true);
    1.16 +		app.getViewPort().setBackgroundColor(ColorRGBA.Black);
    1.17 +		AVIVideoRecorder videoRecorder = new AVIVideoRecorder(file); 
    1.18 +		app.getStateManager().attach(videoRecorder);
    1.19 +		app.getViewPort().addFinalProcessor(videoRecorder);
    1.20 +	}
    1.21 +	
    1.22 +	
    1.23 +	
    1.24 +	
    1.25 +	
    1.26 +}