All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.render.image.ImageMode Maven / Gradle / Ivy

Go to download

Nifty GUI is a Java Library that supports the building of interactive user interfaces for games or similar applications. It utilizes OpenGL for rendering and it can be easily integrated into many rendering systems. The configuration of the GUI is stored in xml files with little supporting Java code. In short Nifty helps you to layout stuff, display it in a cool way and interact with it :)

The newest version!
package de.lessvoid.nifty.render.image;

import de.lessvoid.nifty.Parameterizable;
import de.lessvoid.nifty.Size;
import de.lessvoid.nifty.render.NiftyImage;
import de.lessvoid.nifty.spi.render.RenderDevice;
import de.lessvoid.nifty.spi.render.RenderImage;
import de.lessvoid.nifty.tools.Color;

public interface ImageMode extends Parameterizable {

  /**
   * Render image.
   *
   * @param renderImage RenderImage
   * @param x           x
   * @param y           y
   * @param width       width
   * @param height      height
   * @param color       color
   * @param scale       scale
   */
  void render(
      final RenderDevice renderDevice,
      final RenderImage renderImage,
      final int x,
      final int y,
      final int width,
      final int height,
      final Color color,
      final float scale);

  Size getImageNativeSize(NiftyImage image);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy