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
459 B
31 lines
459 B
10 years ago
|
package mightypork.gamecore.gui.renderers;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
import mightypork.gamecore.render.Render;
|
||
10 years ago
|
import mightypork.gamecore.render.textures.TxQuad;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
public class ImagePainter extends PluggableRenderer {
|
||
10 years ago
|
|
||
|
private TxQuad texture;
|
||
|
|
||
|
|
||
10 years ago
|
public ImagePainter(TxQuad texture) {
|
||
10 years ago
|
this.texture = texture;
|
||
|
}
|
||
|
|
||
|
|
||
|
public void setTexture(TxQuad texture)
|
||
|
{
|
||
|
this.texture = texture;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void render()
|
||
|
{
|
||
|
Render.quadTextured(getRect(), texture);
|
||
|
}
|
||
|
|
||
|
}
|