mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 05:57:14 +00:00
20 lines
548 B
C++
20 lines
548 B
C++
#pragma once
|
|
#include "EntityRenderer.h"
|
|
|
|
class Item;
|
|
|
|
class ItemSpriteRenderer : public EntityRenderer {
|
|
private:
|
|
Item* sourceItem;
|
|
int sourceItemAuxValue;
|
|
|
|
public:
|
|
ItemSpriteRenderer(Item* sourceItem, int sourceItemAuxValue = 0);
|
|
// ItemSpriteRenderer(Item *icon);
|
|
virtual void render(std::shared_ptr<Entity> e, double x, double y, double z,
|
|
float rot, float a);
|
|
virtual ResourceLocation* getTextureLocation(std::shared_ptr<Entity> mob);
|
|
|
|
private:
|
|
void renderIcon(Tesselator* t, Icon* icon);
|
|
}; |