This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
18 lines
428 B
C++
18 lines
428 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);
|
|
|
|
private:
|
|
void renderIcon(Tesselator *t, Icon *icon);
|
|
}; |