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.
28 lines
532 B
28 lines
532 B
package mightypork.rogue.world.item.render;
|
|
|
|
|
|
import mightypork.gamecore.core.App;
|
|
import mightypork.gamecore.resources.textures.TxQuad;
|
|
import mightypork.rogue.world.item.Item;
|
|
import mightypork.rogue.world.item.ItemRenderer;
|
|
import mightypork.utils.math.constraints.rect.Rect;
|
|
|
|
|
|
public class QuadItemRenderer extends ItemRenderer {
|
|
|
|
private final TxQuad txq;
|
|
|
|
|
|
public QuadItemRenderer(Item item, TxQuad txq) {
|
|
super(item);
|
|
this.txq = txq;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void render(Rect r)
|
|
{
|
|
App.gfx().quad(r, txq);
|
|
}
|
|
|
|
}
|
|
|