Class ScreenshotsManager

  • All Implemented Interfaces:
    IObserver

    public class ScreenshotsManager
    extends java.lang.Object
    implements IObserver
    • Constructor Detail

      • ScreenshotsManager

        public ScreenshotsManager()
    • Method Detail

      • initialize

        public static void initialize()
      • 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 - the IFileImageRenderer to use.
        Returns:
        String with the path to the screenshot image file.
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver