You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
445 B
31 lines
445 B
10 years ago
|
package mightypork.rogue.gui.renderers;
|
||
|
|
||
|
|
||
|
import mightypork.rogue.render.Render;
|
||
|
import mightypork.rogue.textures.TxQuad;
|
||
|
|
||
|
|
||
|
public class ImageRenderer extends PluggableRenderer {
|
||
|
|
||
|
private TxQuad texture;
|
||
|
|
||
|
|
||
|
public ImageRenderer(TxQuad texture) {
|
||
|
this.texture = texture;
|
||
|
}
|
||
|
|
||
|
|
||
|
public void setTexture(TxQuad texture)
|
||
|
{
|
||
|
this.texture = texture;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void render()
|
||
|
{
|
||
|
Render.quadTextured(getRect(), texture);
|
||
|
}
|
||
|
|
||
|
}
|