/*
* This file is part of the Illarion project.
*
* Copyright © 2014 - Illarion e.V.
*
* Illarion is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Illarion is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
package org.illarion.engine.nifty;
import de.lessvoid.nifty.spi.render.RenderImage;
import org.illarion.engine.graphic.Color;
import org.illarion.engine.graphic.Graphics;
import javax.annotation.Nonnull;
/**
* This is the general interface for a render image for the Nifty-GUI implementation on this engine.
*
* @author Martin Karing <nitram@illarion.org>
*/
public interface IgeRenderImage extends RenderImage {
void renderImage(@Nonnull Graphics g, int x, int y, int width, int height, @Nonnull Color color, float imageScale);
void renderImage(
@Nonnull Graphics g,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
@Nonnull Color color,
float scale,
int centerX,
int centerY);
}