Package gaiasky.screenshot
Class ScreenshotsManager
java.lang.Object
gaiasky.screenshot.ScreenshotsManager
- All Implemented Interfaces:
IObserver
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Event notification call.void
renderCurrentFrameBuffer
(String folder, String file, int w, int h) void
void
renderToImage
(IMainRenderer mr, ICamera camera, double dt, IPostProcessor.PostProcessBean ppb, int width, int height, String folder, String filename, IFileImageRenderer renderer, Settings.ImageFormat format, float quality) Renders the current scene to an image and returns the file name where it has been written to
-
Field Details
-
frameRenderer
-
screenshotRenderer
-
-
Constructor Details
-
ScreenshotsManager
-
-
Method Details
-
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, Settings.ImageFormat format, float quality) Renders the current scene to an image and returns the file name where it has been written to- Parameters:
mr
- The main renderer to use.camera
- The 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.
-
notify
Description copied from interface:IObserver
Event notification call.
-