Class ScreenshotsManager
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.screenshot.ScreenshotsManager
-
-
Field Summary
Fields Modifier and Type Field Description IFileImageRenderer
frameRenderer
IFileImageRenderer
screenshotRenderer
static ScreenshotsManager
system
-
Constructor Summary
Constructors Constructor Description ScreenshotsManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
initialize()
void
notify(Events event, java.lang.Object... data)
void
renderCurrentFrameBuffer(java.lang.String folder, java.lang.String file, int w, int h)
void
renderFrame(IMainRenderer mr)
void
renderScreenshot(IMainRenderer mr)
java.lang.String
renderToImage(IMainRenderer mr, ICamera camera, double dt, IPostProcessor.PostProcessBean ppb, int width, int height, java.lang.String folder, java.lang.String filename, IFileImageRenderer renderer, GlobalConf.ImageFormat type, float quality)
Renders the current scene to an image and returns the file name where it has been written to
-
-
-
Field Detail
-
system
public static ScreenshotsManager system
-
frameRenderer
public IFileImageRenderer frameRenderer
-
screenshotRenderer
public IFileImageRenderer screenshotRenderer
-
-
Method Detail
-
initialize
public static void initialize()
-
renderFrame
public void renderFrame(IMainRenderer mr)
-
renderScreenshot
public void renderScreenshot(IMainRenderer mr)
-
renderCurrentFrameBuffer
public void renderCurrentFrameBuffer(java.lang.String folder, java.lang.String file, int w, int h)
-
renderToImage
public java.lang.String renderToImage(IMainRenderer mr, ICamera camera, double dt, IPostProcessor.PostProcessBean ppb, int width, int height, java.lang.String folder, java.lang.String filename, IFileImageRenderer renderer, GlobalConf.ImageFormat type, float quality)
Renders the current scene to an image and returns the file name where it has been written to- Parameters:
camera
-width
- The width of the image.height
- The height of the image.folder
- The folder to save the image to.filename
- The file name prefix.renderer
- theIFileImageRenderer
to use.- Returns:
- String with the path to the screenshot image file.
-
-