Package gaiasky.screenshot
Class ScreenshotsManager
java.lang.Object
gaiasky.screenshot.ScreenshotsManager
- All Implemented Interfaces:
IObserver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidvoidrenderCurrentFrameBuffer(String folder, String file, int w, int h)voidrenderFrame(IMainRenderer mr)voidrenderToImage(IMainRenderer mr, ICamera camera, double dt, IPostProcessor.PostProcessBean ppb, int width, int height, String folder, 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 Details
-
system
-
frameRenderer
-
screenshotRenderer
-
-
Constructor Details
-
ScreenshotsManager
public ScreenshotsManager()
-
-
Method Details
-
initialize
public static void initialize() -
renderFrame
-
renderScreenshot
-
renderCurrentFrameBuffer
-
renderToImage
public String renderToImage(IMainRenderer mr, ICamera camera, double dt, IPostProcessor.PostProcessBean ppb, int width, int height, String folder, 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- theIFileImageRendererto use.- Returns:
- String with the path to the screenshot image file.
-
notify
-